Starttag für XML-Parser-Fehler erwartet
function retrieveProfile()
{
$url = "http://steamcommunity.com/profiles/{$this->steamID64}/?xml=1";
$profileData = simplexml_load_string($url);
if(!empty($profileData->error)) { return NULL; }
$this->friendlyName = (string) $profileData->steamID;
}
Warnung: simplexml_load_string () [function.simplexml-load-string]: Entität: Zeile 1: Parser-Fehler: Start-Tag erwartet, '<' nicht gefunden
Warnung: simplexml_load_string () [function.simplexml-load-string]:http://steamcommunity.com/profiles/76561197991676121/?xml=1
Warnung: simplexml_load_string () [function.simplexml-load-string]: ^
Dies ist die XML-Datei:
http://steamcommunity.com/profiles/76561197991676121/?xml=1
Ich habe keine Ahnung, warum es nicht funktioniert und ja, es hat<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Header ! Versucht$profileData = new SimpleXMLElement(file_get_contents($url))
auch, aber ich bekomme das gleiche Ergebnis.
Warum passiert dies ? Wie kann ich das lösen? Ich suche 3 Stunden und sehe nur Antworten, die mir nicht helfen.
Fehler:http://img824.imageshack.us/img824/9464/errorszz.png
EDIT1: simplexml_load_string war einer meiner Fehler, aber jetzt bekomme ich noch mehr Fehler mit simplexml_load_file - Sagt mir, dass das Dokument leer ist ... (Nicht wahr!)