title: parse single line from XML URL in php
body: <p>I have a xml URL where I want to parse a single line. But my script cant even read the XML url. I looked at the answer given at <a href="https://stackoverflow.com/questions/19103326/php-parsing-xml-from-url">PHP parsing XML from URL</a> but I still get 3 errors at the file_get_contents() command. There is no error with some other sites. </p>
  
  <p>my script is:</p>
  
  <pre><code>    &lt;?php
      header('Content-type: text/html; charset=utf-8');
  
      $url = "https://geodata.nationaalgeoregister.nl/geocoder/Geocoder?zoekterm=1056SW+11";
      $data = file_get_contents($url);
      $data = iconv(mb_detect_encoding($data, mb_detect_order(), true), "UTF-8", $data);
      $xml = simplexml_load_string($data);
  
      print_r($xml);      
  ?&gt;
  </code></pre>
  
  <p>I try to print the whole XML in this case, but eventually i want it to only print line 5 of the xml, the coordinates. How can I overcome the errors, and how can I make sure it only prints one line in this XML?</p>
  
  <p>Thanks in advance!</p>