title: using XmlNamespaceManager for retrieving list of all namespaces
body: <p>I am trying to get list of all defined namespaces by <code>XmlNamespaceManager</code> in this code:</p>
  
  <pre><code>var manager = new XmlNamespaceManager(xmlDoc.NameTable);
  var dic = manager.GetNamespacesInScope(XmlNamespaceScope.All);
  </code></pre>
  
  <p>and this is my xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;psf:PrintCapabilities 
   version='1' 
   xmlns:psf='http://schemas.microsoft.com/windows/2003/08/printing/printschemaframework' 
   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
   xmlns:xsd='http://www.w3.org/2001/XMLSchema' 
   xmlns:ns0000='http://schemas.microsoft.com/windows/printing/oemdriverpt/Lexmark T650/6.1.7601.17514/' 
   xmlns:psk='http://schemas.microsoft.com/windows/2003/08/printing/printschemakeywords'&gt;
  
   &lt;/psf:PrintCapabilities&gt;
  </code></pre>
  
  <p>Interestingly GetNamespacesInScope() method returns <strong>only one item</strong> (<em>key="xml", value="http://www.w3.org/XML/1998/namespace"</em>)</p>
  
  <p>What is missing here?</p>
  
  <p>Note: even if I use one of the defined namespace prefixes (for example by adding <code>&lt;ns0000:a&gt;hi&lt;/ns0000:a&gt;</code>) it does not change anything.</p>