webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Query to get node attributes from XML

    Posted Fri April 15, 2005 03:06 PM

    Hi Friends
    I am trying to retrieve attributes of a particular node from one xml file,i am using queryXMLnode service for that.I am able to retrieve particular value of a node by using the query=/rootnode/childnode and queryType=xql.I want to retrieve the attributes of particular node also. Please tell me which query can i use for that?
    Can anyone tell me which is the most efficient method to do XML parsing???

    regards
    jimmy


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Query to get node attributes from XML

    Posted Mon April 18, 2005 05:18 AM

    Hi
    Can anyone help me…I am still having the same problem.
    Thanks & Regards
    Jimmy


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: Query to get node attributes from XML

    Posted Mon April 18, 2005 06:34 PM

    Try query=/rootnode/childnode/@attribute to get the value of a speoific attribute. Another approach:

    query=/rootnode/childnode/source()
    This will return the XML of the entire child node. You can then call xmlStringToXMLNode and xmlNodeToDocument to get access to all of the child node components.

    HTH


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services