ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <...@schillbaer.de>
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 <Guy.catz@waves.com> 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">
   <![CDATA[
   <someelement/>
   <someelement/>
   <someelement/>
   <someelement/>
   <someelement/>
   <someelement/>
   ]]>
</echo>

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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message