EDN Admin
Well-known member
How do I associate a namespace with an XName?
I thought it was like
<pre class="prettyprint private static XName xnNodeNeeded = "{Namespace}Level1/Level2/Level3";
IEnumerable<XElement> results = elemControl.XPathSelectElements(xnNodeNeeded);[/code]
But when I do this, I get the error "Argument 2: cannot convert from System.Xml.Linq.XName to string
View the full article
I thought it was like
<pre class="prettyprint private static XName xnNodeNeeded = "{Namespace}Level1/Level2/Level3";
IEnumerable<XElement> results = elemControl.XPathSelectElements(xnNodeNeeded);[/code]
But when I do this, I get the error "Argument 2: cannot convert from System.Xml.Linq.XName to string
View the full article