I created two different files with almost the exact same content.
file.xml contains pure xml data
file.php contains the exact same data except the first line, this on is
changed to
<?
echo ("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
?>
instead of just
<?xml version="1.0" encoding="utf-8"?>
If I request the xml file in Mozilla or IE it displays the xml content
like those browsers normally do (a nice colorfull tree structure) but if
I request the php file only IE displays it the exact same way as the xml
file (nice and colrfull again), Moz outputs one straight line of text.
Is this a php problem where IE interprets it wrong again and desides to
display it the xml way or is this a browser problem where Moz interprets
it wrong (because it might only display it as nice and colorfull if it
has the xml extension)?
Prodoc
file.xml contains pure xml data
file.php contains the exact same data except the first line, this on is
changed to
<?
echo ("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
?>
instead of just
<?xml version="1.0" encoding="utf-8"?>
If I request the xml file in Mozilla or IE it displays the xml content
like those browsers normally do (a nice colorfull tree structure) but if
I request the php file only IE displays it the exact same way as the xml
file (nice and colrfull again), Moz outputs one straight line of text.
Is this a php problem where IE interprets it wrong again and desides to
display it the xml way or is this a browser problem where Moz interprets
it wrong (because it might only display it as nice and colorfull if it
has the xml extension)?
Prodoc
Comment