cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: Remove <?xml version="1.0" encoding="ISO-8859-1"?> from the output xml
Date Wed, 04 Apr 2007 17:49:09 GMT
On 04.04.2007 19:33, alarcher wrote:

> I try to find a way to remove the first line of the output xml in cocoon.
> Here's the xml after cocoon serialization :
> <?xml version="1.0" encoding="ISO-8859-1"?>
> Do you know if there's a way to configure serializer for deleting the first
> line ?

Hi Antoine,

first please try the users list first for such kind of questions. The 
dev list is more targeted for the development of Cocoon itself.

Anyway, to answer your question: The parameter is called 
omit-xml-declaration and can be set as parameter on the serializer. The 
default sitemap [1] actually has set this parameter already on the wml 

     <map:serializer logger="sitemap.serializer.wml" 
mime-type="text/vnd.wap.wml" name="wml" 
      <doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public>



View raw message