Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: How to fetch the node name of XML tag

  1. #1
    Join Date
    May 2015
    Posts
    3

    Default How to fetch the node name of XML tag

    Hi I need to fetch the node name of XML tag. I'm using get data from XML function.

    Eg:

    <test>
    <test1>
    <branch>
    <name>abc</name>
    <current/>
    <location>xyz</location>
    </branch>
    </test1>
    </test>

    I need to get 'current' from the above example.

  2. #2

    Default

    go to the "fields" tab of the "get xml data" and on the xpath column type test/test1/current. Enter a variable name on the column name. The "element" should be "Node", the "result type" should be "value of" and the type "string"

    Hugo

  3. #3
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Quote Originally Posted by Appurv View Post
    Hi I need to fetch the node name of XML tag.
    The name of a node is returned by name().
    Are you sure you know what you need?
    So long, and thanks for all the fish.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.