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


Mime
View raw message