Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: writing to XML

Gilbert Rebhan

2008-05-01

Replies:

Author LoginPost Reply
Guy Catz wrote:
> Hi.
>
> What I actually need, is to write data into a XML file, so I will be
> able to render this XML to a HTML as a report.
> The XML structure is something I know.
>


ant > 1.7.0 =
<echoxml file="foobar.xml">
 your xml goes here
</echoxml>

ant < 1.7.0 =

<echo file="foobar.xml">
 <![CDATA[
 your xml goes here
 ]]>
</echo>

maybe you need to use =

<echoxml file="..." append="true">
or
<echo file="..." append="true">

if you want to write to an existing file
and append your data to that file


Regards, Gilbert



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.