When using LINQ to XML why dont I get results if I dont import a XML namespace (Daniel Walzenbach)?
Posted by: The Visual Basic Team,
on 30 Apr 2009 |
View original | Bookmarked: 0 time(s)
Hi,
I posted a bit of code the other day which I used to get a list of all Code Snippets we ship in Visual Studio. In a nutshell, I used XElement.Load to create a new XML document from a filename from which I then read elements from (There are way to many from in this sentence ;-) ). Unfortunately, I forgot to import the XML Namespace in the code I posted which caused my code not to return any results (but instead provided me with a brilliant opportunity to write another post. hehe :-) ).
Lets have...