Mam taki dość irytujący problem, próbuję pobrać do zmiennych dane z pluku xml.
<?xml version='1.0' encoding='UTF-8' ?> <dane> <imie></imie> <nazwisko></nazwisko> </dane>
$xml = simplexml_load_file('http://xxxxxxxx.pl/dane.xml');
Warning: simplexml_load_file() [function.simplexml-load-file]: dane.xml:2: parser error : XML declaration allowed only at the start of the document in
Warning: simplexml_load_file() [function.simplexml-load-file]: <?xml version='1.0' encoding='UTF-8' ?> in
Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in
Jak to ugryźć? siedze nad tym już dość długo...
