Posted: Mon Jan 22, 2007 6:41 am
In that case how about:I wanted to convert it into XML document, echo it out just to test it, i'm not wanting to echo the statement out only
Code: Select all
$line = "<$field>$content</$field>";Yeah browsers will do that. You should serve the file as XML:However. the output isn't the intended one.
Code: Select all
header('Content-type: text/xml');