« Return to Thread: writing to XML

Re: writing to XML

by Gilbert Rebhan :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: writing to XML