I'm trying to use XPath to get a handle on one specific node so that I can
replace it with an xml fragment I've loaded from another file.
So if I have this XML:
<issue>
<id>1</id>
<date>7/28/2006</date>
<states/>
</issue>
If "myDoc" is the preceding XML loaded into an XmlDocument object, then this
code is what I want to return the <states/node above, but it returns null
instead:
XmlNode statesNode = doc.SelectSingleNode("//states");
I can't seem to get this XPath to return a node. Can someone help me out
here? Is there a better approach?