title: How to access a xml node with attributes and namespace using selectsinglenode()
body: <p>I have this document where i want to get to the value in <code>"x_server_response/retrieve_resources_by_category_response/source_full_info/record/ datafield[@tag='520']/subfield[@code='a']"</code>
  But i just can't! Why?</p>
  
  <p>i suspect that this has something to do with the namespace daclaration at the <em>record</em> node. But i can not figure out how to do it.</p>
  
  <p>my code looks like this:</p>
  
  <pre><code>XmlNodeList xmlResources = r.ResponseXmlDocument.SelectNodes("x_server_response/retrieve_resources_by_category_response/source_full_info);              
  
              foreach (XmlNode xmlResource in xmlResources)   
              {
                  string information = xmlResource.SelectSingleNode("record/datafield[@tag='520']/subfield[@code='a']").InnerText;   
  </code></pre>
  
  <p>And the xml goes like this:</p>
  
  <pre><code> &lt;x_server_response&gt; metalib_version="4.00 (20)&gt;
      &lt;source_full_info&gt; 
        &lt;record xmlns="http://www.loc.gov/MARC21/slim/" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="http://www.loc.gov/MARC21/slim 
        http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"&gt; 
        &lt;controlfield tag="001"&gt;CKB02166&lt;/controlfield&gt; 
                  &lt;datafield tag="520" ind1=" " ind2=" "&gt; 
          &lt;subfield code="a"&gt;Providing access to thousands of online journals from leading 
          scholarly, academic and business publishers, the Ingenta Select service provides fast and 
          reliable access from a global network of servers to users' desktops around the world. 
          ## ##Ingenta Select provides access to more than 5,000 electronic 
          publications from over 190 publisher clients and bring together an extensive range of services 
          for the librarian and end-user alike&lt;/subfield&gt; 
        &lt;/datafield&gt;          &lt;/record&gt; 
        &lt;/source_full_info&gt; 
        &lt;session_id new_session="N"&gt;3B7F9EQE259KNK1YUK462VCCG4455T4BUPUC5B9LVQS9XD16U6&lt;/session_id&gt;
  &lt;x_server_response&gt; 
  </code></pre>