Browse by Tags
All Tags »
XML (
RSS)
I got this error when setting up some LINQ to XML code and I couldn't figure out why I kept getting this error as it made no sense. After doing a quick search, I realized my root element was this: var o = new XElement("statement", query...
I was working with using the XMLNamespaceManager object the other day, and saw that there was a DefaultNamespace property, but it wasn't assignable. In doing some research, it turns out that if you want to assign a default namespace, you call AddNamespace...
When quering XML elements that belong to a namespace, you have to create an XmlNamespaceManager, and pass it to every SelectNodes or SelectSingleNode statement you make. This object is used to resolve the namespaces in the queries, so that you can get...