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.
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
Hi Can anyone help me…I am still having the same problem. Thanks & Regards Jimmy
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