Looks like you may be running into a collision between PHP short tags and the <?xml tag. This is why it's best to have short_open_tags turned off in your PHP installation and instead use <?php tags.
I would suggest adding the following line to your .htaccess file...
php_value short_open_tag 0
...and then replace all of your "<?" opening PHP tags with "<?php".