Forum Moderators: open

Message Too Old, No Replies

xml/xsl automatically adding in xml declaration

         

badgering

12:22 pm on Aug 4, 2007 (gmt 0)

10+ Year Member



Hi everyone, i am transforming a weather XML feed to XHTML with XSL and PHP.

I want this to be a part of my main XHTML page, but the XML keeps adding the following declaration <?xml version="1.0"?>

The only way i have found to remove it is to add in HTML tags but i dont want to do that either.

Thanks for any help.

cmarshall

12:51 pm on Aug 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to add omit-xml-declaration to your <output/> element [w3schools.com].

Namespaces [rpbourret.com] are also fun.

badgering

2:14 pm on Aug 4, 2007 (gmt 0)

10+ Year Member



sweet! thanks cmarshall