Page 1 of 1

display xml code in browser??

Posted: Mon Jul 25, 2005 2:51 pm
by waskelton4
I'm working on building an xml file programatically with php and I'd like to view it in a browser window while testing.

When I use the default php content header.. I don't see anything. (have to view code)
When i use:

Code: Select all

<?php header(&quote;Content-type: text/xml&quote;); ?>
I get an error parsing the xml. But the code that is being parsed is correct for my application.

Anyone know of a quick and easy way to display all of this xml?

Thanks

Will

Posted: Mon Jul 25, 2005 3:27 pm
by hawleyjr
If your XML is not properly formatted. You will get an xml parse error. view the source of the file and you should see your xml.

Posted: Mon Jul 25, 2005 3:28 pm
by waskelton4
hawleyjr wrote:If your XML is not properly formatted. You will get an xml parse error. view the source of the file and you should see your xml.
Thanks for the reply.. about 2.5 seconds before the notify email came to me about your reply.. I figured out my issue.. (at least this issue)

thanks!

ws