Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 76636 invoked by uid 500); 16 Jun 2003 12:47:34 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 76609 invoked from network); 16 Jun 2003 12:47:34 -0000 Received: from unknown (HELO host.leverageweb.com) (64.91.232.157) by daedalus.apache.org with SMTP; 16 Jun 2003 12:47:34 -0000 Received: from dhcp205162.hq.af.mil ([134.205.205.162] helo=WHEW00073U.leverageweb.com) by host.leverageweb.com with esmtp (Exim 3.36 #1) id 19RtLY-0001Dq-00 for cocoon-users@xml.apache.org; Mon, 16 Jun 2003 08:44:29 -0400 Message-Id: <5.2.0.9.0.20030616084053.0282b4e0@leverageweb.com> X-Sender: cocoon@leverageweb.com@leverageweb.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Mon, 16 Jun 2003 08:46:03 -0400 To: cocoon-users@xml.apache.org From: Geoff Howard Subject: Re: Writing to filesystem In-Reply-To: <20030616123932.GD29675@West.NL> References: <3EEDB475.25826.1D39E439@localhost> <20030616111253.GB29675@West.NL> <3EEDB475.25826.1D39E439@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.leverageweb.com X-AntiAbuse: Original Domain - xml.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - leverageweb.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N It is complaining about the whitespace nodes between source:frament and title. You'll get this anytime you overwrite a whole document. To fix, just do something like: ... SourceWritingTransformer Test Result 1 ... At 08:39 AM 6/16/2003, you wrote: >As quoted from Upayavira : > > > Hi, > > > > > > What is the best way to write the output of a Transformer (in a > > > pipeline) into a file (e.g. /resources/bla.xml) on the filesystem? > > > > Check out the SourceWritingTransformer. > >I am checking it out. thanks. I'm getting an error though: > >failedThere was a problem manipulating your document: >org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to >insert a node where it is not permitted. writenonefile:/resources/result.xml > > >My xml source (called test.xml): > > > > context://resources/result.xml > > SourceWritingTransformer Test Result 1 > > > --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-users-help@xml.apache.org