Function: toObject()
ts
function toObject(element, options?): XmlValue;Defined in: netconf/src/xml/project.ts:30
Convert an element's content to a plain object, for convenience.
This is lossy by design: namespaces, document order between different names, and mixed content are dropped. Keys are local names. An element with no child elements becomes its text. Navigate XmlElement directly when any of that matters.
Parameters
element
options?
ToObjectOptions = {}