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

Document created by MaryGreening on Jul 9, 2014
Version 1Show Document
  • View in full screen mode
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?

Attachments

    Outcomes