ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <>
Subject Re: writing to XML
Date Thu, 01 May 2008 14:37:59 GMT
James Fuller schrieb:
> On Thu, May 1, 2008 at 4:01 PM, Guy Catz <> wrote:
>> 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?

> <someelement/>
> <someelement/>
> <someelement/>
> <someelement/>
> <someelement/>
> <someelement/>
> the above would not be valid xml

with <echo> something like =

<echo file="foobar.xml" append="true">

would be possible, if it's valid xml or not,
whereas <echoxml> task accepts only valid xml.

Just make sure that the first <echo> in the workflow
has an opening <somerootelement> and the last <echo> in
the workflow has a closing </somerootelement> to get a
valid xml file after all.

Regards, Gilbert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message