Action group: XML
Gets a collection containing the content of elements with the specified tag.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
XML context | XML-context | Robin.XML | XML context | Yes |
XPath | Path to XML-element in DOM model | Robin.String | Yes | |
Results | ||||
Result | A collection with the content of XML elements at the specified path | Robin.Collection |
If XPath does not explicitly define a tag, we get a collection of the contents of tags that satisfy the specified XPath.
If a tagged element has daughter elements, the their contents are glued into a single string.
Example of use
Get the collection of elements with tag AUTHOR from the XML file Text.xml
Use the "Load XML", "Get elements XPath" actions.
The program robot completed successfully. The collection of the elements with tag AUTHOR was obtained.