Namespaces in XName

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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
 
Back
Top