Skip to main content

Convert to dictionary

Turn XML (or the part a path finds) into a Dictionary; attributes become keys starting with @.

Command in the XML toolkit · id ooa.xml/to_dictionary · 4 inputs, 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
XMLStringNoXML text (or use path).
PathFileNoXML file (or use xml).
XPathStringNoConvert only the first node matching this XPath.
SessionStringNoWork on the XML of this session (Start session) instead of a file or text; changes stay in the session until End session saves them.

Outputs​

OutputTypeWhat it is
valueAnyDictionary or text.