title: How do I get a NameTable from an XDocument?
body: <p>How do I get a NameTable from an XDocument?</p>
  
  <p>It doesn't seem to have the NameTable property that XmlDocument has.</p>
  
  <p>EDIT: Judging by the lack of an answer I'm guessing that I may be missing the point.</p>
  
  <p>I am doing XPath queries against an XDocument like this...</p>
  
  <pre><code>document.XPathSelectElements("//xx:Name", namespaceManager);
  </code></pre>
  
  <p>It works fine but I have to manually add the namespaces I want to use to the XmlNamespaceManager rather than retrieving the existing nametable from the XDocument like you would with an XmlDocument.</p>