Re: Remove XML declaration and html DOCTYPE

Mansour Al Akeel <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <CAFvvX=b+RX6s5SgbiEMUmZgtOaOUyNB9bz-s-C_tq3TtA4AVxA@mail.gmail.com>
sorry, my fault. I didn't tell the version.
I am using C3.0



On Wed, Jun 19, 2013 at 11:05 AM, Bhavya Sharma <[email protected]>wrote:

> try this
>
> <map:serializer name="xml-omit" mime-type="text/html"
> src="org.apache.cocoon.serialization.XMLSerializer">
>  <encoding>UTF-8</encoding>
> <omit-xml-declaration>true</omit-xml-declaration>
>  </map:serializer>
>
>
>
> On Wed, Jun 19, 2013 at 8:33 PM, Joel McConaughy <[email protected]
> > wrote:
>
>> Try this...
>>
>> <map:serializer name="xml-omit" mime-type="text/xml"
>>  src="org.apache.cocoon.serialization.XMLSerializer">
>>  <encoding>UTF-8</encoding>
>> <omit-xml-declaration>true</omit-xml-declaration>
>>  </map:serializer>
>>
>>
>>
>> On Wed, Jun 19, 2013 at 7:53 AM, Mansour Al Akeel <
>> [email protected]> wrote:
>>
>>> How do I remove the xml declaration and doctype from xml and html
>>> serializes ??
>>>
>>>
>>
>>
>> --
>> Joel McConaughy
>> 206-300-4732
>> [email protected]
>>
>
>
>
> --
> *Thanks with regards
> *
> *Bhavya Sharma*
>         निष्काम
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.