Search This Blog

SQL server 2008 :LINQ TO XML NAMESPACES

LINQ to XML provides namespace support through the XNamespace object. To create a namespace, just assign the Uniform Resource Identifier (URI) to an XNamespace variable. To use the namespace, just concatenate it to the element name when querying. LINQ to XML automatically expands the namespace-qualified element name out to its fully qualified name internally, so you don't have to worry about it.