PDA

View Full Version : Unable to access root node attributes



nash99
18 Jun 2009, 11:45 PM
Hi all ,

I am trying to access the attributes of the root node of the xml file (test.xml).
I was able to access all the inner nodes (attributes) of the xml file .
Can any body provide an example on how to access the attributes of the root node of xml file.

Description : test.xml

<?xml version="1.0" encoding="UTF-8"?>
<ItemSearchResponse value3="ReqVal">
<OperationRequest value2="@@ReqVal">
<HTTPHeaders>
<Header Name="UserAgent"
Value="Mozilla/4.0"></Header>
</HTTPHeaders>
</OperationRequest>
</ItemSearchResponse>

I need to access value3 from the root node of the xml (and just alert it), I am using dataStore to retrieve the inner attributes of the xml nodes.
Any help or examples is appreciated.
thanks
Nash