Displaying XML in IE

maester

New Member
in a new project, I want to generate an XML file with PHP (I've done this one a lot of times) but now I'm facing a very weird problem, IE doesn't display the XML correctly but in an old project's directory, the XML displays correctly, but in the new project's directory it don't display the XML. The code is:\[code\]header('Content-Type: text/xml');echo '<root><foo a="b">Tada</foo></root>';\[/code\]In the old project's directory, this program displays:\[code\]<?xml version="1.0"?>-<root> <foo a="b">Tada</foo></root>\[/code\]But in the new project's directory it only displays:\[code\]Tada\[/code\]If I see the source code of the page, in both directories it shows:\[code\]<root><foo a="b">Tada</foo></root>\[/code\]In Firefox I have no problem. Any idea of what is happening? Thanks in advance.Marco.
 
Back
Top