• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDOM rules, Why use anything else?

 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I not exactly an XML master, but I can usually beat it into submission with a little effort.
After using JDOM for a just a bit, why would you want to use anything else?
You can use DOM and SAX as input and generate DOM documents and SAX events as output all using a nice slick Java centric API.
Its speed and resource overhead are closer to a SAX approach with every possible benifit of DOM, so why say no?
If anyone has any real reasons, please do tell.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm not an "XML master" either but my first response would be from a business practices perspective... I'm not going to rely on api libraries that are still in beta for my production code - period.
I realize you were probably looking for more of a technical discussion but I think the current release state is an important consideration.
Still hoping to see a technical discussion on this topic tho...
------------------
Varek Boettcher
 
Andrew Shafer
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

And all those extra lines of code will thank you for it.
Use whatever you want but I think Jason Hunter's Beta releases are probably on par with many people's final release. I'm sure it will only get better, but it works great now and a final release is only a matter of time.
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to be picky( like me here are some not-so-good things about JDOM -

  • JDOM currently doesnot support XPath( though they are working on it )
  • Support for entities and entity references is still flaky in JDOM
  • The core API has intentionally been left thread unsafe. In other words, there are no synchronized blocks within org.jdom.
  • Performance can be a real concern whilst using JDOM with large documents because of additional overhead of creating and maintaining the Collections.

  • If you are interested in learning more about pending issues, checkout their To Do list

    Despite these shortcomings, JDOM was accepted today by the Java Community Process (JCP) as a Java Specification Request (JSR-102). Members of the JCP Executive Committee supporting the effort include Apache, Borland, Caldera, Cisco, HP, IBM, and Sun. So your're right, once these issues are taken care of, JDOM will probably rule the world!
    Cheers!
    ------------------
    Ajith Kallambella M.
    Sun Certified Programmer for the Java�2 Platform.
    IBM Certified Developer - XML and Related Technologies, V1.
 
Andrew Shafer
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

It's fun for the whole family
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, then, since it's going to rule the world, I suppose I'd better get on it. Ajith's list of XML resources was very helpful. Where can I learn more specifically about DOM?
- SA

------------------

--
Sylvia Allen
sylviaa@sirius.com
 
Sylvia Allen
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whoops--my sig was outdated. Not that I need a reply offline particularly, but if you do send me one the correct address is:
------------------
Sylvia Allen
sylviaa@screaminet.com
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic