Want to find a specific node in xml

Currently, I have the xml as the following:\[code\]<Node_Parent> <Column name="ColA" value="http://stackoverflow.com/questions/13818073/A" /> <Column name="ColB" value="http://stackoverflow.com/questions/13818073/B" /> <Column name="ColC" value="http://stackoverflow.com/questions/13818073/C" /></Node_Parent>\[/code\]How to get value B at ColB? I tried to use \[code\]XmlDocument.SelectSingleNode("Node_Parent")\[/code\], but I cannot access to ColB?If I change to \[code\]<ColB value="http://stackoverflow.com/questions/13818073/B" />\[/code\], I can use \[code\]XmlDocument.SelectSingleNode("Node_Parent/ColB").Attributes["value"].Value\[/code\], but the xml format doesn't look good?Thanks.
 
Back
Top