All Tags »
ASP.NET »
LINQ »
XML »
Programming (RSS)
Sorry, but there are no more tags available to filter with.
-
A fellow emailed me earlier asking how to get the namespaces from an XML document,
but he was having trouble because the XML had some XML declarations like <?foo?>.
A System.Xml Way
XPathDocument has two cool methods, GetNamespace(localName) and GetNamespaceInScope,
but they need a currentNode to work with.
string s = ...