OK firstly, I added this line to my .htaccess file so the php engine parses php code in .xml file:
AddType application/x-httpd-php .php .php3 .phtml .html .xml
After that when I view an .xml file I get this PHP error:
Parse error: parse error, unexpected T_STRING in /var/www/vhosts/mydomain.com/httpdocs/test.xml on line 1
But line 1 is not even php infact this is line 1:
<?xml version="1.0" encoding="utf-8"?>
Can anyone tell me what the problem is?
Thanks.