• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

JDOM???

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I've looked on the JDOM project page www.jdom.org , and what I've seen it just looks like another parser. I haven't looked into it further, but why should I use JDOM instead of other parsers?
greetings
Sander
[This message has been edited by Sander Fieten (edited March 16, 2001).]
 
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go thru this link for better answer..
Anil
 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Xerces parser from Apache has JDOM rolled into it - and Xerces also has SAX and a bunch of other facilities that can help you. So I'd go with Xerces parser instead.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sander:
If you are programming in java, then i would recommend using jdom in lieu of dom or sax parsers, because it combines the best features of both: you get the performance of SAX and the object-tree of dom. Typically, DOM model is not suitable for parsing large documents due to memory restrictions. On the other hand, SAX parsers are fast but are sequential and although you can read the data, it does not provide a way to hange the data easily.
However, you can use jdom's sax parser to get the speed and still get the object model so that you can modify data.
Ajit's link would provide more details. And also brett maclaughlin's book (java and xml). mclaughlin is one of the codevelopers of this api.
yatin

Originally posted by Sander Fieten:
Hi,
I've looked on the JDOM project page www.jdom.org , and what I've seen it just looks like another parser. I haven't looked into it further, but why should I use JDOM instead of other parsers?
greetings
Sander
[This message has been edited by Sander Fieten (edited March 16, 2001).]


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!