title: delphi read xml element
body: <p>I'm new to XML and we need to do GeoCoding with the new <a href="http://msdn.microsoft.com/en-us/library/gg585131.aspx" rel="nofollow">Bing Spatial Data API</a>. I've managed to get a result back from them in xml format. How would I read specific elements in the response, ie. the Link, Status and ErrorMessages?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/search/local/ws/rest/v1"&gt;
      &lt;Copyright&gt;Copyright © 2011 Microsoft and its suppliers. All rights reserved. This API cannot be accessed and the content and any results may not be used, reproduced or transmitted in any manner without express written permission from Microsoft Corporation.&lt;/Copyright&gt;
      &lt;BrandLogoUri&gt;http://spatial.virtualearth.net/Branding/logo_powered_by.png&lt;/BrandLogoUri&gt;
      &lt;StatusCode&gt;201&lt;/StatusCode&gt;
      &lt;StatusDescription&gt;Created&lt;/StatusDescription&gt;
      &lt;AuthenticationResultCode&gt;ValidCredentials&lt;/AuthenticationResultCode&gt;
      &lt;TraceId&gt;ID|02.00.82.2300|&lt;/TraceId&gt;
      &lt;ResourceSets&gt;
          &lt;ResourceSet&gt;
              &lt;EstimatedTotal&gt;1&lt;/EstimatedTotal&gt;
              &lt;Resources&gt;
                  &lt;DataflowJob&gt;
                      &lt;Id&gt;ID&lt;/Id&gt;
                      &lt;Link role="self"&gt;https://spatial.virtualearth.net/REST/v1/dataflows/Geocode/ID&lt;/Link&gt;
                      &lt;Status&gt;Pending&lt;/Status&gt;
                      &lt;CreatedDate&gt;2011-03-30T08:03:09.3551157-07:00&lt;/CreatedDate&gt;
                      &lt;CompletedDate xsi:nil="true" /&gt;
                      &lt;TotalEntityCount&gt;0&lt;/TotalEntityCount&gt;
                      &lt;ProcessedEntityCount&gt;0&lt;/ProcessedEntityCount&gt;
                      &lt;FailedEntityCount&gt;0&lt;/FailedEntityCount&gt;
                  &lt;/DataflowJob&gt;
              &lt;/Resources&gt;
          &lt;/ResourceSet&gt;
      &lt;/ResourceSets&gt;
  &lt;/Response&gt;
  </code></pre>
  
  <p>I'm using Delphi XE.</p>
  
  <p>Regards, Pieter</p>