Method Parser.XML.node_to_struct()
- Method
node_to_struct
mapping(string:string|array|mapping) node_to_struct(.NSTree.NSNode|.Tree.Noderootnode)- Description
XML parsing made easy.
- Returns
A hierarchical structure of nested mappings and arrays representing the XML structure starting at
rootnodeusing a minimal depth."":stringThe text content of the node.
"/":mappingThe arguments on this node.
"...":stringThe text content of a simple subnode.
"...":arrayA list of subnodes.
"...":mappingA complex subnode (recurse).
- Example
Parser.XML.node_to_struct(Parser.XML.NSTree.parse_input("<foo>bar</foo>"));