Query to get node attributes from XML

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???


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

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

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.