ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Aravamudhan <avij...@gmail.com>
Subject Re: how to replace a segment in a XML file?
Date Tue, 11 Sep 2007 04:05:13 GMT
we use the xmltask (http://www.oopsconsultancy.com/software/xmltask/) to 
work with xml structures within an ant file. And it seems to fit our needs.
Based on what you want to do, this might help.

NOTE: I am in no way affiliated to/with OOPS consultancy. Just think 
that this package/tool is a great addition to ant while working with xml 
structures.

thanks,
hth,
Vijay

Chad.Chang wrote:
> I have to replace a section in a xml file which can be identified by 
> attribute "id".
>
> The section which id equals 100 is what i wanna replace with <xxx 
> id="100" name="test">. Could you guys give me some suggestions?
>
> <root>
> ................
> <xxx id="100">
> </xxx>
> ............
> <xxx id="200">
> </xxx>
> ................
> </root>
>
>
> Thanks,
> -Chad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message