There are many pretty good json libs lika GSon. But for XML I know only Xerces/JDOM and both have tedious API.
I don’t like to use unnecessary objects like DocumentFactory, XpathExpressionFactory, NodeList and so on.
So in the light of native xml support in languages such as groovy/scala I have a question.
Is there are minimalistic java XML IO framework?
PS XStream/JAxB good for serialization/deserialization, but in this case I’m looking for streaming some data in XML with XPath for example.
Dom4J rocks. It’s very easy and understandable
Sample Code:
Output: