Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 53227 invoked from network); 1 May 2008 14:01:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 May 2008 14:01:56 -0000 Received: (qmail 40439 invoked by uid 500); 1 May 2008 14:01:55 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 39803 invoked by uid 500); 1 May 2008 14:01:53 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 39792 invoked by uid 99); 1 May 2008 14:01:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 07:01:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [12.34.136.7] (HELO exchange.waves.com) (12.34.136.7) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2008 14:00:57 +0000 Content-Class: urn:content-classes:message Subject: RE: writing to XML MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Thu, 1 May 2008 11:01:52 -0300 X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 Message-ID: <78D7D3F417119D4A91DFDB794E23397D067219B1@exchange.waves.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: writing to XML thread-index: AcirbRrNjAgDTjBvSmqkkbX3SDgE4gAJpQxQ References: <78D7D3F417119D4A91DFDB794E23397D06721585@exchange.waves.com> <15177.62.129.121.62.1209575422.squirrel@www.oopsconsultancy.com> <78D7D3F417119D4A91DFDB794E23397D067216BF@exchange.waves.com> <48198BCF.70303@apache.org> From: "Guy Catz" To: "Ant Users List" X-Virus-Checked: Checked by ClamAV on apache.org Thanks guys, that's very helpful. But, once I've used echoxml to write into a file, can I use it again to add more values, in append mode? I need to add values to my XML file in different tasks, not in one place. Please advice, Thank you very much, Guy. -----Original Message----- From: Steve Loughran [mailto:stevel@apache.org]=20 Sent: Thursday, May 01, 2008 12:22 PM To: Ant Users List Subject: Re: writing to XML Guy Catz wrote: > Hi. >=20 > What I actually need, is to write data into a XML file, so I will be=20 > able to render this XML to a HTML as a report. > The XML structure is something I know. >=20 > Thanks. >=20 There is an task that takes well formed XML and echoes it. foo One thing you have to watch out for here is namespace games. If you want xml in a new namespace -declare the namespaces inside the echoxml -keep it all explicit -check the output by hand to see that it looks ok you can use and to automate those checks --=20 Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org