According to the MSDN article LINQ to XML vs. DOM, under the subheading "Working Directly with XML Elements":
When using LINQ to XML, you use the XDocument class only if you want to add a comment or processing instruction at the root level of the document.