A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Ant, Maven and Other Build Tools
Modifying XML file with ANT
Joined: Mar 06, 2001
Oct 28, 2004 10:33:00
I have a XML configuration file which is something like this
Now, I want to write a build.xml which modifies XYZ to say ABC
What's the bext way to do this? I tried using a ugly creation of
filterset with copy task. Howvever, I would prefer to use
<filterset id="myFilterSet" begintoken="<name>" endtoken="</name>">
<filter token="XYZ" value="ABC" />
but unfortunately doesn't work because of special characters ("<")
[ October 28, 2004: Message edited by: Prashanth Joisha ]
Joined: Oct 28, 2004
Oct 28, 2004 22:21:00
Look at xmltask from
It makes manipulating XML files from a build easy.
Joined: May 21, 2004
Oct 31, 2004 02:25:00
Or better use xslt :-).
It's not so hard.
Best regards<br />---> Daniel
I agree. Here's the link:
subject: Modifying XML file with ANT
ant copy task with filterset ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015