I\'ve got a php script. Most of the time the script returns html, which is working fine, but on one occasion (parameter ?Format=XML) the script returns XML instead of HTML.<
Set the Content-Type header:
Content-Type
header('Content-Type: text/xml');
Though you should probably use "application/xml" instead.