Which is the best library for XML parsing in java

2019-01-01 01:54发布

I'm searching the java library for parsing XML (complex configuration and data files), I googled a bit but couldn't found other than dom4j (Seems like they are working on V2).. I have taken look at commons configuration but didn't liked it, Other apache projects on XML seems under hibernation. I haven't evaluated dom4j by myself but just wanted to know - Do java has other (Good) open source xml parsing library? and how's your experience with dom4j?

After the @Voo's answer let me ask another one - Should I use java's in built classes or any third library like dom4j.. What are the advantages?

标签: java xml parsing
7条回答
后来的你喜欢了谁
2楼-- · 2019-01-01 02:28

For folks interested in using JDOM, but afraid that hasn't been updated in a while (especially not leveraging Java generics), there is a fork called CoffeeDOM which exactly addresses these aspects and modernizes the JDOM API, read more here:

http://cdmckay.org/blog/2011/05/20/introducing-coffeedom-a-jdom-fork-for-java-5/

and download it from the project page at:

https://github.com/cdmckay/coffeedom

查看更多
登录 后发表回答