<p>I am following a VB tutorial to do some <a href="http://blogs.msdn.com/bethmassi/archive/2008/04/25/querying-html-with-linq-to-xml.aspx" rel="nofollow noreferrer">HTML manipulation using LINQ</a> </p>

<p>It has the following construct</p>

<pre><code>Imports &lt;xmlns="http://www.w3.org/1999/xhtml"&gt;
</code></pre>

<p>How do I do the same in C#?</p>

<p>There appears to be something called an XMLNamespaceManager that may hold the solution, but I am too foolish to understand how to work it, and I am not sure it is the correct tree to bark up.</p>

<p>Got any advice?</p>

VB.Net has a feature called
```
XML Literals
```
that is not present in C#.  This import statement adds a namespace for use with those literals.
In researching this information, I found this link helpful:
http://blogs.msdn.com/bethmassi/archive/2007/10/30/quickly-import-and-export-excel-data-with-linq-to-xml.aspx
It's also very informative for working with Excel xml docs, but that's a side issue ;)