Hi phpmob,
No i tested this in my local machine and it worked fine but as soon as i upload that to my server it gave me the same error.
The reason behind this is, in my local machine i had short_open_tag to off but in the server it was on so when you put,
<?xml version='1.0' encoding='UTF-8' ?>
The PHP try to parse it and in return it gaves an error. So check your php.ini file.
Thanks,
Best regards,
Niroshan