Release Automation

Expand all | Collapse all

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

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

    Posted Dec 18, 2013 01:49 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:
     
     
     


  • 2.  RE: Nolio Official KB: How do I work with XPath Actions?

    Posted Dec 18, 2013 01:50 PM

    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.



  • 3.  RE: Nolio Official KB: How do I work with XPath Actions?

    Posted Dec 18, 2013 01:52 PM
    HI Leo,
     
     
    You are correct, here is the proper image 
     
     
     
     
     
    Thank you