I have this php code
\\n\"; echo \"\\n\"; echo \"\\t<
As the others have said, you need to give the browser a header to let it know how to display the page.
As for xml functions, have a look at the PHP SimpleXMLElement