Hi ,
I need some help regarding XML Doc Class.
Suppose i have one xml as follows :
<ABC>
<xyz>
<Code>0</Code><Message>RESULT_MESSAGE</Message>
</xyz>
</ABC>
In this XML , If i will give input xyz, then i should get
<Code>0</Code><Message>RESULT_MESSAGE</Message>
as output .
It would be great if any body will give suggestion
Thanks & Regards
Ramanatha Reddy
dhanvanth@gmail.com - 23 May 2006 19:18 GMT
Did you try using XPATH expressions?
Ben Voigt - 25 May 2006 00:38 GMT
> Did you try using XPATH expressions?
Specifically:
XPathDocument doc;
XPathNavigator root = doc.CreateNavigator();
root.moveToFirstChild(); //get the single document element ABC
string result = root.SelectSingleNode("abc").Value;