Converting XML with ant
I need to change some XML files, and possibly generate XML, in our build and deployment process that runs on ant. Examples of what I might need would be elimination of certain elements based on the value of specific attributes, changing attribute values, adding attributes, and adding all new elements. I'm pretty familiar with this with the DOM in Java and would like something like ant if possible.
Any good suggested ant third party tasks that I could use?
+2
source to share
2 answers
Have you reviewed the Ant XSLT task ? It sounds like you especially want to use the DOM manipulation style, but I thought I should mention this just in case you are open to transformations and not DOM manipulations. If you are new to XSLT, there is a good introduction at w3schools.com .
+5
source to share