Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 73624 invoked from network); 7 Jan 2004 16:14:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 7 Jan 2004 16:14:26 -0000 Received: (qmail 46938 invoked by uid 500); 7 Jan 2004 16:14:11 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 46923 invoked by uid 500); 7 Jan 2004 16:14:11 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 46909 invoked from network); 7 Jan 2004 16:14:11 -0000 Received: from unknown (HELO exchange?geral.intra.cet.pt) (194.65.138.11) by daedalus.apache.org with SMTP; 7 Jan 2004 16:14:11 -0000 Received: from [10.112.24.41] (10.112.24.41 [10.112.24.41]) by exchange_geral.intra.cet.pt with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id CPKPSVRK; Wed, 7 Jan 2004 16:17:52 -0000 Subject: Writing transformer question! From: "Rui Alberto L." =?ISO-8859-1?Q?Gon=E7alves?= To: users@cocoon.apache.org Content-Type: text/plain; charset=UTF-8 Organization: PT Inovação Message-Id: <1073492067.4373.51.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 07 Jan 2004 16:14:27 +0000 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi all, I wrote a transformer that write and reads XML from a socket. When a document is readed from the socket I need to fire the corresponding events on the pipeline. For doing so I'm using: SAXParser parser = null; try { byte[] bytes = buffer.toString().getBytes(); InputSource input = new InputSource(new ByteArrayInputStream(bytes)); parser = (SAXParser)this.manager.lookup(SAXParser.ROLE); parser.parse(input, this.xmlConsumer); } the problem is that there are events that can't be generated again, like "startDocument", because the events sequence on the pipeline will be invalid!! Does anyone have an idea how can I overcome this problem. Thanks to all, Rui -- Rui Alberto L. Gonçalves PT Inovação --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org