jdom vs. dom4j

Y

Yoel Spotts

I am currently using DOM for my projects but have become convinced of
the advantages of switching to a more Java-centric xml framework. I have
looked into both jdom and dom4j and done some research into both. All
things being equal, personally I find the dom4j features and API more
attractive -- although obviously that is a subjective entity. On the
other hand, it appears that jdom has many more followers and I hesitate
to use a package which in a couple of years may be forgotten and
abandoned due to jdom's popularity.

I was wondering if anyone has used both packages and has any thoughts
they would like share. Come to think of it, even if you have not used
both packages I am interested to hear your thoughts as I am sure many
people have been faced with a similar dilema: one framework which
appears superior but is less popular than another framework.

Thanks,

Yoel Spotts
 
D

Dale King

Yoel Spotts said:
I am currently using DOM for my projects but have become convinced of
the advantages of switching to a more Java-centric xml framework. I have
looked into both jdom and dom4j and done some research into both. All
things being equal, personally I find the dom4j features and API more
attractive -- although obviously that is a subjective entity. On the
other hand, it appears that jdom has many more followers and I hesitate
to use a package which in a couple of years may be forgotten and
abandoned due to jdom's popularity.

I was wondering if anyone has used both packages and has any thoughts
they would like share. Come to think of it, even if you have not used
both packages I am interested to hear your thoughts as I am sure many
people have been faced with a similar dilema: one framework which
appears superior but is less popular than another framework.


I personally have not used any of the API's but have done some reading
lately. Another alternative you may want to look at is XOM which was
designed by Elliote Rusty Harold to improve on JDOM.

The XOM page is at: http://cafeconleche.org/XOM/

Artima.com has a 9 part interview between Bill Venners and Elliote about
what's wrong with DOM and JDOM and the design of XOM (which is where I
learned about it):

http://www.artima.com/articles/index.jsp?topic=xml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,829
Latest member
KimberAlli

Latest Threads

Top