title: Xpath/C#, getting data from multiple namespaces
body: <p>So, in the XML below using this code sample, i can successfully grab HomeAddress and Name information for each entry from my XML. What if I also need to grab the ID (drivers license numberxxx) information from each entry?</p>
  
  <p>EDIT: Updated XML sample for clarificaiton</p>
  
  <p>Code Sample:</p>
  
  <pre><code>XmlDocument xDoc = new XmlDocument();
          xDoc.LoadXml(responseFromServer);
          XmlNamespaceManager xnsmgr = new XmlNamespaceManager(xDoc.NameTable);
          xnsmgr.AddNamespace("ns1", "http://www.w3.org/2005/Atom");
          xnsmgr.AddNamespace("ns2", "http://strange.com/ns/1.0/");
          XmlNodeList xnlInsuredListMembers = xDoc.SelectNodes("//ns2:InsuredListMember", xnsmgr);
          foreach (XmlNode xnMember in xnlInsuredListMembers)
          {
              XmlNode xnHomeAddress = xnMember.SelectSingleNode("ns2:HomeAddress", xnsmgr);
              string sHomeAddress = xnHomeAddress.InnerText;
  
              XmlNode xnName = xnMember.SelectSingleNode("ns2:Name", xnsmgr);
              string sName = xnName.InnerText;
  
              MessageBox.Show(sHomeAddress + sName);
          }
  </code></pre>
  
  <p>XML Sample</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;feed xmlns="http://www.w3.org/2005/Atom"&gt;
        &lt;id&gt;someID&lt;/id&gt;
        &lt;title type="text"&gt;Title&lt;/title&gt;
        &lt;author&gt;
          &lt;name&gt;XML Author&lt;/name&gt;
        &lt;/author&gt;
        &lt;updated&gt;2010-10-25T20:05:30.267Z&lt;/updated&gt;
        &lt;link href="currentURL"&gt;&lt;/link&gt;
        &lt;link href="nextURL"&gt;&lt;/link&gt;
        &lt;entry&gt;
          &lt;id&gt;Drivers License Numberxxx&lt;/id&gt;
          &lt;content type="application/vnd.ctct+xml"&gt;
            &lt;InsuredListMember xmlns="http://strange.com/ns/1.0/"&gt;
              &lt;HomeAddress&gt;123 anystreet&lt;/HomeAddress&gt;
              &lt;Name&gt;doe, somegal&lt;/Name&gt;
            &lt;/InsuredListMember&gt;
          &lt;/content&gt;
        &lt;/entry&gt;
        &lt;entry&gt;
          &lt;id&gt;Drivers License Numberxxx&lt;/id&gt;
          &lt;content type="application/vnd.ctct+xml"&gt;
            &lt;InsuredListMember xmlns="http://strange.com/ns/1.0/"&gt;
              &lt;HomeAddress&gt;321 anystreet&lt;/HomeAddress&gt;
              &lt;Name&gt;doe, someguy&lt;/Name&gt;
            &lt;/InsuredListMember&gt;
          &lt;/content&gt;
        &lt;/entry&gt;
      &lt;/feed&gt;
  </code></pre>