title: Read namespaces from xml document
body: <p>how do I read namespaces from the XML document?</p>
  
  <pre><code>&lt;fx:FIBEX xmlns:fx="http://www.asam.net/xml/fbx" xmlns:can="http://www.asam.net/xml/fbx/can" xmlns:flexray="http://www.asam.net/xml/fbx/flexray"      
      xmlns:ho="http://www.asam.net/xml" xmlns:ni="http://www.ni.com/xnet"    
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     
      xsi:schemaLocation="http://www.asam.net/xml/fbx/all http://www.asam.net/xml/fbx/2_0_1/xsd/fibex4multiplatform.xsd"     
       VERSION="2.0.1"&gt;
  </code></pre>
  
  <p>How can I read the namespaces from this root element?</p>
  
  <p>In fact the ultimate question is "how to retrieve a node using xPath like </p>
  
  <pre><code>//fx:ELEMENTS/fx:CLUSTERS/fx:CLUSTER 
  </code></pre>
  
  <p>? </p>
  
  <p>I have tried XmlDocument.SelectSingleNode() with that string but that gave me some error about XmlNamespaces and I found on google that you need to have an XmlNamespaceManager in place. </p>