Welcome to WebmasterWorld Guest from

Forum Moderators: httpwebwitch

Message Too Old, No Replies

xml/xsl automatically adding in xml declaration



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

5+ 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.


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.


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

5+ Year Member

sweet! thanks cmarshall

Featured Threads

Hot Threads This Week

Hot Threads This Month