Skip to main content

Each node in XML

Yield each node matching an XPath: its text, XML, XPath or an attribute.

Loop type in the XML toolkit · id ooa.xml/nodes · 7 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
XPathStringYesXPath expression.
XMLStringNoXML text (or use path).
PathFileNoXML file (or use xml).
AttributeStringNoYield this attribute of each node instead of its text.
Return valueStringNotextWhat to yield for each node: its text, its XML, or its exact XPath.
NamespacesDictionaryNoPrefix to namespace URI for prefixes in the XPath, e.g. {"inv": "urn:example:invoice"}; prefixes declared in the document work without this. Map a default namespace (xmlns="...") to a prefix of your choice to address it; a prefix with an empty URI, e.g. {"d": ""}, stands for the document's own default namespace.
SessionStringNoGo through the nodes of this XML session (Start session) instead of a file or text.