title: XML Parser Error Start Tag Expected
body: <pre><code>function retrieveProfile() 
  {
      $url = "http://steamcommunity.com/profiles/{$this-&gt;steamID64}/?xml=1";
      $profileData = simplexml_load_string($url);
  
      if(!empty($profileData-&gt;error)) { return NULL; }
  
      $this-&gt;friendlyName  = (string) $profileData-&gt;steamID;  
  }
  </code></pre>
  
  <blockquote>
    <p>Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Start tag expected, '&lt;' not found </p>
    
    <blockquote>
      <p>Warning: simplexml_load_string() [function.simplexml-load-string]: <a href="http://steamcommunity.com/profiles/76561197991676121/?xml=1" rel="nofollow">http://steamcommunity.com/profiles/76561197991676121/?xml=1</a> </p>
      
      <blockquote>
        <p>Warning: simplexml_load_string() [function.simplexml-load-string]: ^</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>This is the XML file:</p>
  
  <p><a href="http://steamcommunity.com/profiles/76561197991676121/?xml=1" rel="nofollow">http://steamcommunity.com/profiles/76561197991676121/?xml=1</a>  </p>
  
  <p>I got no ideea why it does not work and yes it have <code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;</code> header !
  Tried <code>$profileData = new SimpleXMLElement(file_get_contents($url))</code> too but I get the same result.</p>
  
  <p>Why is this happening ? How can I solve it? I am searching for 3 hours and see only answers that won't help me .<br>
  Errors : <a href="http://img824.imageshack.us/img824/9464/errorszz.png" rel="nofollow">http://img824.imageshack.us/img824/9464/errorszz.png</a>  </p>
  
  <p>EDIT1 : simplexml_load_string was one of my mistakes but now I get even more errors with simplexml_load_file - Tells me that the document is empty... (Not true !)</p>