homepage Welcome to WebmasterWorld Guest from 54.167.249.155
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
xml/xsl automatically adding in xml declaration
badgering




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

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




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

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

Namespaces [rpbourret.com] are also fun.

badgering




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

sweet! thanks cmarshall

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved