LINQ to XML Namespace Example
We use a XML namespace to avoid name conflicts. With a namespace we can more specifically point to an element in a XML structure. In LINQ to XML a namespace is represented by the XNamespace class. In the code snippet below we simply add a fictive namespace to the list of cars we created in the previous example. More…