title: getting xml from URL into variable
body: <p>I am trying to get an xml feed from a url</p>
  
  <pre><code>http://api.eve-central.com/api/marketstat?typeid=1230&amp;regionlimit=10000002
  </code></pre>
  
  <p>but seem to be failing miserably. I have tried</p>
  
  <ul>
  <li><p><a href="http://php.net/SimpleXMLElement" rel="nofollow"><code>new SimpleXMLElement</code></a>, </p></li>
  <li><p><a href="http://php.net/file_get_contents" rel="nofollow"><code>file_get_contents</code></a> and </p></li>
  <li><p><code>http_get</code></p></li>
  </ul>
  
  <p>Yet none of these seem to echo a nice XML feed when I either <code>echo</code> or <code>print_r</code>. The end goal is to eventually parse this data but getting it into a variable would sure be a nice start.</p>
  
  <p>I have attached my code below. This is contained within a loop and <code>$typeID</code> does in fact give the correct ID as seen above</p>
  
  <pre><code>$url = 'http://api.eve-central.com/api/marketstat?typeid='.$typeID.'&amp;regionlimit=10000002';
  echo $url."&lt;br /&gt;";
  $xml = new SimpleXMLElement($url);
  print_r($xml);
  </code></pre>
  
  <p>I should state that the other strange thing I am seeing is that when I echo $url, i get </p>
  
  <pre><code>http://api.eve-central.com/api/marketstat?typeid=1230®ionlimit=10000002
  </code></pre>
  
  <p>the <code>&amp;reg</code> is the registered trademark symbol. I am unsure if this is "feature" in my browser, or a "feature" in my code</p>