title: Reading XML file in C#.net
body: <p>I am trying to read an XML response from 192.com.</p>
  
  <p>This is a validation of customer details.</p>
  
  <p>The XML response is set out as follows (Customer Details Removed):</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;Search Type="Result"&gt;
    &lt;CountryCode&gt;GBR&lt;/CountryCode&gt;
    &lt;Person&gt;
      &lt;Name&gt;
        &lt;Forename&gt;XXXXX&lt;/Forename&gt;
        &lt;Surname&gt;XXXXX&lt;/Surname&gt;
      &lt;/Name&gt;
      &lt;DateOfBirth&gt;XXXX-XX-XX&lt;/DateOfBirth&gt;
      &lt;Age&gt;XX&lt;/Age&gt;
    &lt;/Person&gt;
    &lt;Addresses&gt;
      &lt;Address Current="1"&gt;
        &lt;Premise&gt;X&lt;/Premise&gt;
        &lt;Postcode&gt;XX99 9XX&lt;/Postcode&gt;
        &lt;CountryCode&gt;GBR&lt;/CountryCode&gt;
      &lt;/Address&gt;
    &lt;/Addresses&gt;
    &lt;SearchOptions&gt;
      &lt;ProductCode&gt;ProveID&lt;/ProductCode&gt;
    &lt;/SearchOptions&gt;
    &lt;OurReference&gt;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;/OurReference&gt;
    &lt;SearchDate&gt;2012-05-30T12:39:55&lt;/SearchDate&gt;
    &lt;Result&gt;
     &lt;Summary&gt;
        &lt;ReportSummary&gt;
          &lt;DatablocksSummary&gt;
            &lt;DatablockSummary&gt;
              &lt;Name&gt;CreditReference&lt;/Name&gt;
              &lt;Decision&gt;1&lt;/Decision&gt;
            &lt;/DatablockSummary&gt;
          &lt;/DatablocksSummary&gt;
        &lt;/ReportSummary&gt;
      &lt;/Summary&gt;
      &lt;CreditReference Type="Result"&gt;
        &lt;Summary&gt;
          &lt;Decision&gt;1&lt;/Decision&gt;
          &lt;DecisionReasons&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/TotalNumberOfVerifications&lt;/Element&gt;
              &lt;Decision&gt;1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/OpenAccountsMatch&lt;/Element&gt;
              &lt;Decision&gt;1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/DateOfBirthMatch&lt;/Element&gt;
              &lt;Decision&gt;1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/ElectoralRollMatch&lt;/Element&gt;
              &lt;Decision&gt;-1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/ElectoralRollDateOfBirthMatch&lt;/Element&gt;
              &lt;Decision&gt;-1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/TelephoneDirectoryMatch&lt;/Element&gt;
              &lt;Decision&gt;1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/BOEMatch&lt;/Element&gt;
              &lt;Decision&gt;-1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/PEPMatch&lt;/Element&gt;
              &lt;Decision&gt;-1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/OFACMatch&lt;/Element&gt;
              &lt;Decision&gt;-1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/DeceasedMatch&lt;/Element&gt;
              &lt;Decision&gt;-1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/COAMatch&lt;/Element&gt;
              &lt;Decision&gt;-1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/CIFASMatch&lt;/Element&gt;
              &lt;Decision&gt;-1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/NoOfCCJ&lt;/Element&gt;
              &lt;Decision&gt;-1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
            &lt;DecisionReason&gt;
              &lt;Element&gt;CreditReferenceSummary/NoOfOpenAccountsLenders&lt;/Element&gt;
              &lt;Decision&gt;1&lt;/Decision&gt;
            &lt;/DecisionReason&gt;
          &lt;/DecisionReasons&gt;
        &lt;/Summary&gt;
        &lt;CreditReferenceSummary&gt;
            &lt;CreditReferenceDecision/&gt;
            &lt;CreditReferenceScore/&gt;
            &lt;TotalNumberOfVerifications&gt;7&lt;/TotalNumberOfVerifications&gt;
            &lt;OpenAccountsMatch&gt;1&lt;/OpenAccountsMatch&gt;
            &lt;DateOfBirthMatch&gt;1&lt;/DateOfBirthMatch&gt;
            &lt;ElectoralRollMatch&gt;0&lt;/ElectoralRollMatch&gt;
            &lt;ElectoralRollDateOfBirthMatch&gt;0&lt;/ElectoralRollDateOfBirthMatch&gt;
            &lt;TelephoneDirectoryMatch&gt;1&lt;/TelephoneDirectoryMatch&gt;
            &lt;PhoneNumberMatch&gt;0&lt;/PhoneNumberMatch&gt;
            &lt;DriverLicenceMatch/&gt;
            &lt;PassportMatch/&gt;
            &lt;DFATMatch/&gt;
            &lt;BOEMatch&gt;0&lt;/BOEMatch&gt;
            &lt;PEPMatch&gt;0&lt;/PEPMatch&gt;
            &lt;OFACMatch&gt;0&lt;/OFACMatch&gt;
            &lt;DeceasedMatch&gt;0&lt;/DeceasedMatch&gt;
            &lt;COAMatch&gt;0&lt;/COAMatch&gt;
            &lt;CIFASMatch&gt;0&lt;/CIFASMatch&gt;
            &lt;GoneAwayMatch/&gt;
            &lt;HighRiskAddressMatch/&gt;
            &lt;CommercialEntitiesAtAddressMatch/&gt;
            &lt;NoOfCommercialEntitiesAtAddress/&gt;
            &lt;NoOfCCJ&gt;0&lt;/NoOfCCJ&gt;
            &lt;NoOfOpenAccountsLenders&gt;5&lt;/NoOfOpenAccountsLenders&gt;
            &lt;IDVerified/&gt;
        &lt;/CreditReferenceSummary&gt;
        &lt;CreditReferenceDetails&gt;
          &lt;StandardisedAddress Current="1"&gt;
            &lt;SubPremise/&gt;
            &lt;Premise&gt;999999&lt;/Premise&gt;
            &lt;SubStreet/&gt;
            &lt;Street&gt;XXXXXXXXX&lt;/Street&gt;
            &lt;SubLocality/&gt;
            &lt;Locality&gt;XXXXXXXXXXXXXXXXXXX&lt;/Locality&gt;
            &lt;PostTown&gt;XXXXXXXXXXXXXXXXXXX&lt;/PostTown&gt;
            &lt;Region&gt;XXXXXXXXXXXXXXX&lt;/Region&gt;
            &lt;Postcode&gt;XX999XX&lt;/Postcode&gt;
            &lt;CountryCode&gt;GBR&lt;/CountryCode&gt;
          &lt;/StandardisedAddress&gt;
        &lt;/CreditReferenceDetails&gt;
      &lt;/CreditReference&gt;
    &lt;/Result&gt;
  &lt;/Search&gt;
  </code></pre>
  
  <p>I need to extract from this XML the  elements for the following from the <code>&lt;CreditReferenceSummary&gt;</code></p>
  
  <ul>
  <li><code>&lt;TotalNumberOfVerifications&gt;7&lt;/TotalNumberOfVerifications&gt;</code></li>
  <li><code>&lt;OpenAccountsMatch&gt;1&lt;/OpenAccountsMatch&gt;</code></li>
  <li><code>&lt;DateOfBirthMatch&gt;1&lt;/DateOfBirthMatch&gt;</code></li>
  <li><code>&lt;DeceasedMatch&gt;0&lt;/DeceasedMatch&gt;</code></li>
  <li><code>&lt;NoOfOpenAccountsLenders&gt;5&lt;/NoOfOpenAccountsLenders&gt;</code></li>
  </ul>
  
  <p>Any help greatly appreciated. Thank you in advance.</p>