In LINQ to XML, an XName represents a full XML name consisting of an XNamespace object and the local name. In contrast, the W3C DOM always treats text as an XML node.
Developers will usually find it more convenient to use the XNamespace object rather than the namespace URI string. Consequently in many DOM implementations the only way to read and manipulate the underlying text of a leaf node is to read the text node children of the leaf node.
The API choices for working with XML seem to be either aged and verbose such as DOM or XML specific such as XQuery or XSLT which require motivation, study, and time to master.
LINQ to XML, a component of the LINQ project, aims to address this issue.
From an XML perspective, LINQ to XML provides the query and transformation power of XQuery and XPath integrated into .