• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Is JDOM superior to JAXP ?

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello friends ,
I have been doing some coding in JAXP and there are some people of the opinion that JDOM is better and I should use the JDOM API.
Now I have no idea at all of JDOM whatsoever but I personally do feel that JAXP does make heavy weather of simple things like getNodeValue()of the Interface Node, for example. Anyway as I have no idea of JDOM at all, I would like to have expert advice as to which is better and when ?
Thanks and regards,
Milan Doshi
[ June 21, 2002: Message edited by: Doshi Milan ]
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let me start by saying JDOM and JAXP has nothing in common. So you shouldn't be comparing them in the first place.
JAXP allows you to seamlessly plugin any (JAXP-compliant) parser into your application. It is important to remember JAXP is not a parser by itself, but provides a layer of abstraction to an underlying parser.
JDOM is a Java representation of an XML document. It is a document object model that uses XML parsers to build documents. Just like JAXP, JDOM is not an XML parser. The default XML parser used by JDOM is the JAXP-selected parser, but JDOM can use nearly any parser.
JDOM allows you to manipulate a document object model as using Java 2 Collections API. It behaves like a W3C DOM, but is faster and lighter compared to standard DOM. Note that JDOM is not a wrapper around W3C DOM, it stands on its own, completely new ground.
JDOM is fairly new and is most likely to be adopted into JDK. I suggest that you checkout the JDOM Faq and other resources on www.jdom.org

Hope that helps!
 
Get out of my mind! Look! A tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic