Release Automation

Nolio Official KB: How do I work with XPath Actions? 

Jul 08, 2014 09:24 PM

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:

 

The image of Nolio Action for updating an XML attribute is invalid and "3. Insert an XML attribute " shows instructions for inserting an XML element.

 

HI Leo,
You are correct, here is the proper image
Thank you

 

This document was generated from the following discussion: Nolio Official KB: How do I work with XPath Actions?

Statistics
0 Favorited
3 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.