I need to modify certain XML files, and possibly generate XML, in our build and deploy process, which runs on ant. Examples of what I might need to do would be eliminating certain elements based on the value of particular attributes, changing the values of attributes, adding attributes, and adding all new elements. I'm pretty familiar with doing this through the DOM in Java and would like something that feels similar from ant, if possible.
Any good suggested third-party ant tasks I could use?