Quantcast
Channel: No Nodes Selected from Atom XML document using XPath? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Mathulan for No Nodes Selected from Atom XML document using XPath?

Load XML from a string and lookup for any 'Errors/Error' nodes. XmlDocument xmlDoc = new XmlDocument();xmlDoc.LoadXml(xmlResult); XmlNamespaceManager nm = new...

View Article


Answer by kdgregory for No Nodes Selected from Atom XML document using XPath?

While the C# implementation may allow default namespaces (I don't know), the XPath 1.0 spec doesn't. So, give "Atom" its own prefix:nsMngr.AddNamespace("atom", "http://www.w3.org/2005/Atom");And change...

View Article

No Nodes Selected from Atom XML document using XPath?

I'm trying to parse an Atom feed programmatically. I have the atom XML downloaded as a string. I can load the XML into an XmlDocument. However, I can't traverse the document using XPath. Whenever I...

View Article
Browsing latest articles
Browse All 3 View Live