Is there an Ant Task to edit XML? I need an Ant Task to edit a build.xml Ant Task.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   A_C
Posted On:   Wednesday, August 17, 2005 01:48 PM

I need ant tasks to edit xml files. I want to find a property with a specific name, and edit the value, for example:

property name="aname" value="aval"

Is there a simple ant task that will find this element, and edit the value attribute? seems simple enough.

I'm thinking of using a custom ant task, by writing a SAX parser to find the value, then using the replace ant task to replace it.

Any Ideas?

Re: Is there an Ant Task to edit XML? I need an Ant Task to edit a build.xml Ant Task.

Posted By:   Anonymous  
Posted On:   Thursday, August 18, 2005 04:26 AM


  • a template and use a nested

  • the external xmltask

  • save the value as , read the file as and write them back with

Re: Is there an Ant Task to edit XML? I need an Ant Task to edit a build.xml Ant Task.

Posted By:   Anand_Rajasekar  
Posted On:   Wednesday, August 17, 2005 09:08 PM

try xmltask from oopsconsultancy
About | Sitemap | Contact