I’d like to filter a couple of nested xml elements, evaluation of their attributes. For this purposes I’m searching a efficient and lightweight java api or framework.
The main requirements are:
- filtering of element bodies, based
on some pattern or condition - event based XML transformation
My first idea was apache jelly, but jelly has an ungly side effect. It removes CDATA tags and thats an unwanted behaviour.
Thanks in advance.
Finally I implemented the filterchain using dom4j and xpath.
I decided for this api because it is quite handy if you got to move a number of branches inside one document and it’s build in xpath facilitates finding the wanted elements.
Thanks for your answers.