An xml is also "simple" text file. So you could try <replaceregexp> or <filterchain>s.
You know the xmltask (see external page)? Jan >-----Ursprüngliche Nachricht----- >Von: Kees van Dieren [mailto:[EMAIL PROTECTED] >Gesendet: Mittwoch, 29. Juni 2005 11:48 >An: 'Ant Users List' >Betreff: RE: XML question > >You can try it with the style task (xslt transformer). You >don't use use dom or an xml parser yourself, but need to >create an external xslt sheet, so it's not pure ant. > >Kind regards, > >Kees van Dieren >Senior Software Engineer > >MP Objects Supply Chain Software >Stationsplein 45 >3013 AK Rotterdam >The Netherlands > >Post address: >Postbus 29126 >3001 GC Rotterdam > >Mobile: +31 (0)6-43068619 >Phone: +31 (0)10-2900304 >Fax: +31 (0)10-2900305 > >-----Original Message----- >From: Nir Geier [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 29, 2005 12:22 PM >To: user@ant.apache.org >Subject: XML question > >Hi all, > >Im trying to manipulate XML by adding new node at some point. >ex: > ><root> > <node1> > <new node goes here/> > </node1> > > <node2> > <sub1> > <new node2 goes here/> > </sub1> > </node2> > ></root> > >Does any one has an idea how to do it without writing my own >task or using XML parser? >I want to do it in a pure ant script if its possible. > >If not i will think on some other idea. > >Ty, in advance. > > > > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] For >additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]