Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > jdom vs. dom4j

Reply
Thread Tools

jdom vs. dom4j

 
 
Yoel Spotts
Guest
Posts: n/a
 
      02-10-2004
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
 
Reply With Quote
 
 
 
 
Dale King
Guest
Posts: n/a
 
      02-13-2004
"Yoel Spotts" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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

--
Dale King


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java.lang.NoSuchMethodError: org.jdom.Element: method getParent()Lorg/jdom/Element Tinker Java 4 10-09-2005 03:12 PM
JDOM: java.lang.NoClassDefFoundError: org/jdom/Content Bernd Oninger Java 4 06-21-2004 09:08 PM
JDOM: java.lang.NoClassDefFoundError: org/jdom/Content Bernd Oninger XML 3 06-21-2004 09:08 PM
Help with JDOM, turn org.jdom.Document -> org.w3c.dom.Document? Wendy S Java 1 08-04-2003 11:48 PM
How to compare to dom4j-Documents or How to read line by line from a dom4j-Document into a String? Wolfgang Java 0 07-09-2003 09:43 AM



Advertisments