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