XPath uses path expressions to select nodes or node-sets in an XML document.
These nodes:
XPath expressions can extract an attribute value from another attribute in the same string.
E.g. In the following XML file, you want to extract the attribute value att3 where the att1 value is bring:
<?xml version="1.0" encoding="UTF-8"?> <parent> <child att1="red" att2="green" att3="black" /> <child att1="car" att2="buss" att3="plane" /> <child att1="dog" att2="cat" att3="child" /> <child att1="bring" att2="jump" att3="walk" /> </parent>
To do so:
//parent/child[@att1='bring']/@att3
For more information on XML and XPath expressions, go to http://www.w3schools.com
Automation Engine all versions
Note: This is an anonymous survey. If you need help from Esko Support, register a Support Case here.