cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Character escaping problem with custom generator
Date Tue, 01 Apr 2008 00:15:58 GMT
On Mar 30, 2008, at 1:32 PM, shai200 wrote:
>
> Also, should I still startDocument and endDocument like so?
>
> contentHandler.startDocument();

Yes this is correct.


> 			contentHandler.startElement("", "content", "content", emptyAttr);
> 				parser.parse(is, contentHandler);

When including content from the parser, need to omit startDocument  
created by parser:

   parser.parse(is, new EmbeddedXMLPipe(contentHandler));


> 			contentHandler.endElement("","content","content");
> 			contentHandler.endDocument();
>
> Or should I just ignore starting and ending the document, manually  
> put the
> <content> tag in my original xhtml String and jst parse the monster?

Please, no! :)

Vadim


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message