|
|||||
Default namespace for LINQ to XML queryLinq rocks completely, however when you write queries against XML documents that have namespaces (and most likely the document will only have one namespace) you have to specify them in your queries. Here’s a nice solution from mike a moogly.me.uk – just strip all of the useless namespaces from XDocument object and query away!
1 comment to Default namespace for LINQ to XML query |
|||||
|
Copyright © 2010 Everyday Internet Stuff - All Rights Reserved |
|||||
[...] To avoid this, I used some code from http://www.everydayinternetstuff.com/2009/12/default-namespace-for-linq-to-xml-query/ that will just strip the namespace info from the XML. Code [...]