XPath is a query language for retrieving and updating content of an XML document.
Below few examples of common XPath actions usage
1. Extract value of attribute
Action to use: Execute an XPath query
Example1 : Finding RepositoryRootPath value
Nolio action will have the following inputs
Example 2: Finding Date value
Nolio action will have the following inputs
2. Update an XML attribute
Action to use: Update an XML attribute using XPath
In this example we will update the "RepositoryRootPath" value
Nolio action will have the following inputs
After running the XPath action the XML file will be updated as follow
3. Insert an XML attribute
Action to use: Insert an XML element using XPath
In this example we will add new Location element:
Nolio action will have the following inputs
After running the XPath action the XML file will be updated as follow: