Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 16421 invoked from network); 1 Apr 2008 00:16:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Apr 2008 00:16:34 -0000 Received: (qmail 60310 invoked by uid 500); 1 Apr 2008 00:16:31 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 60235 invoked by uid 500); 1 Apr 2008 00:16:31 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 60224 invoked by uid 99); 1 Apr 2008 00:16:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 17:16:31 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [68.230.240.46] (HELO eastrmmtao104.cox.net) (68.230.240.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 00:15:48 +0000 Received: from eastrmimpo03.cox.net ([68.1.16.126]) by eastrmmtao104.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20080401001559.GKIF27061.eastrmmtao104.cox.net@eastrmimpo03.cox.net> for ; Mon, 31 Mar 2008 20:15:59 -0400 Received: from [192.168.0.100] ([24.255.120.190]) by eastrmimpo03.cox.net with bizsmtp id 80Fy1Z00h46aSr4020FzhJ; Mon, 31 Mar 2008 20:15:59 -0400 Message-Id: From: Vadim Gritsenko To: users@cocoon.apache.org In-Reply-To: <16384597.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Character escaping problem with custom generator Date: Mon, 31 Mar 2008 20:15:58 -0400 References: <16379318.post@talk.nabble.com> <47EF48F5.6070501@gmx.de> <16384597.post@talk.nabble.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org 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 > 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