title: C# XPath Soap, how to navigate to embedded node
body: <p>In C#, Asp.Net, I am trying to return the Error node inside of BISearchResponse:
  I am able to get the GetWireResult node returned in an XMLNode.
  How do I get to the Error node?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
  - &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  -     &lt;soap:Body&gt;
  -          &lt;GetWireResponse xmlns="http://OpenSolutions.com/"&gt;
                  &lt;GetWireResult&gt;&lt;?xml version="1.0"?&gt; 
                        &lt;BISearchResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; 
                              &lt;Error xmlns="https://bixg.choicepoint.com/webservices/3.0"&gt; 
                                     &lt;Message&gt;BI System: Failed to Login&lt;/Message&gt; 
                                     &lt;Code&gt;536870917&lt;/Code&gt;
                               &lt;/Error&gt;
                        &lt;/BISearchResponse&gt;  
                  &lt;/GetWireResult&gt; 
              &lt;/GetWireResponse&gt;
         &lt;/soap:Body&gt;
    &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>My code:
  XmlDocument xmlDoc = new XmlDocument();</p>
  
  <pre><code>            xmlDoc.LoadXml(result);
  
              XmlNamespaceManager nsmgr = new XmlNamespaceManager(xmlDoc.NameTable);
              nsmgr.AddNamespace("soap", "http://schemas.xmlsoap.org/soap/envelope/");
              nsmgr.AddNamespace("ab", "http://OpenSolutions.com/");
              nsmgr.AddNamespace("bg", " https://bixg.choicepoint.com/webservices/3.0");
              nsmgr.AddNamespace("xsd", "http://www.w3.org/2001/XMLSchema");
              nsmgr.AddNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
  
              XmlNode xmlnode = xmlDoc.DocumentElement.SelectSingleNode("/soap:Envelope/soap:Body/ab:GetWireResponse", nsmgr);
  </code></pre>
  
  <p>This works to here.
  .
  I am adding the xml here, but it is only visible in edit mode.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
  - &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  - &lt;soap:Body&gt;
  - &lt;GetWireResponse xmlns="http://OpenSolutions.com/"&gt;
    &lt;GetWireResult&gt;&lt;?xml version="1.0"?&gt; &lt;BISearchResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt; &lt;Error xmlns="https://bixg.choicepoint.com/webservices/3.0"&gt; &lt;Message&gt;BI System: Failed to Login&lt;/Message&gt; &lt;Code&gt;536870917&lt;/Code&gt; &lt;/Error&gt; &lt;/BISearchResponse&gt;&lt;/GetWireResult&gt; 
    &lt;/GetWireResponse&gt;
    &lt;/soap:Body&gt;
    &lt;/soap:Envelope&gt;
  </code></pre>