i have a xml file like this
<?xml version="1.0"?>
<test>Total</test>
<books>
<mybook id="1">
<blabla>jkjk</blabla>
</mybook>¨
</books>
If I parse it like that with simpleXML
$xml = simplexml_load_file($filename);
it says
simplexml_load_file() [function.simplexml-load-file]: ./uploads/test.xml:3: parser error : Extra content at the end of the document
But if a remove the
<test>Total</test>
at the begining of the xml file it works....
any ideas ?? thank you