Have a look at org.apache.tools.ant.util.DOMElementWriter. Sounds that it could help you.
Jan > -----Original Message----- > From: Upayavira [mailto:[EMAIL PROTECTED] > Sent: Monday, November 17, 2003 12:29 PM > To: Ant Developers List > Subject: Re: Property resolution in a task > > > [EMAIL PROTECTED] wrote: > > >>Is there an Ant way to 'spider' a DOM node, replacing > >>properties as it goes? > >> > >> > > > >I donīt know such a thing. But you can do: > >- write the DOM to a String > >- use Project.replace() on that String > >- parse the String > >- replace the DOM with new one > > > > > >Jan > > > > > Yup, that should work! > > Thanks again. > > Regards, Upayavira > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >