Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > xerces and JDOM

Reply
Thread Tools

xerces and JDOM

 
 
Muni via JavaKB.com
Guest
Posts: n/a
 
      07-13-2005
what is the diference between xerces , JDOM, SAX , and DOM
 
Reply With Quote
 
 
 
 
Lasse Reichstein Nielsen
Guest
Posts: n/a
 
      07-13-2005
"Muni via JavaKB.com" <(E-Mail Removed)> writes:

> what is the diference between xerces , JDOM, SAX , and DOM


Xerces: An XML parser implementation from Apache. It implements
both a SAX parser and the W3C DOM. Exists in both Java
and C++.
<URL:http://xml.apache.org/#xerces>
JDOM: A Java-based solution for accessing, manipulating, and
outputting XML data from Java code. (Take from
<URL:http://www.jdom.org/>). It is based on other
libraries, including Xerces. It has its own Document
Object Model (DOM). It is both a specification and an
implementation.
<URL:http://www.jdom.org/>
SAX: Short for "Simple API for XML". It was really the first
general API for handling XML, with several implementations
existing.
It is fairly low-level, allowing you to handle each tag
in an XML file however you want.
<URL:http://www.saxproject.org/>
DOM: Short for Document Object Model, an object model of a
document (duh . The object model describes a tree
structure of element and text nodes, matching the
tree structure of XML documents.
The most well known DOM is the W3C DOM, used both for
XML and HTML. JDOM has its own, similar but not identical,
DOM for XML documents.
<URL:http://www.w3.org/TR/DOM-Level-2-Core/>

Hope this helps. Read the links for much more information!
/L
--
Lasse Reichstein Nielsen - http://www.velocityreviews.com/forums/(E-Mail Removed)
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
 
Reply With Quote
 
 
 
 
Chris Smith
Guest
Posts: n/a
 
      07-13-2005
Lasse Reichstein Nielsen <(E-Mail Removed)> wrote:
> JDOM: A Java-based solution for accessing, manipulating, and
> outputting XML data from Java code. (Take from
> <URL:http://www.jdom.org/>). It is based on other
> libraries, including Xerces. It has its own Document
> Object Model (DOM). It is both a specification and an
> implementation.


I think it's worth being clearer that JDOM does *not* provide an
implementation of DOM, which is a W3C recommendation. The use of DOM in
conjunction with JDOM is a tad confusing, and the JDOM project
unfortunately continues this confusion by referring to the W3C standard
as "another version of DOM". In normal language, JDOM provides an
object model of a document, but it does *not* provide a Document Object
Model. The difference is significant enough to exclude even the remote
possibility of compatibility... so however similar it looks, an inch is
a mile in standards compliance issues like this.

In general, JDOM is appropriate (and much easier than DOM) for internal-
only uses of XML parsing within Java applications, where the important
thing is accessing the actual information from the document. External
interfaces that incorporate XML should use the better-standardized DOM.
If the programmer on the other side wishes to use JDOM, then they can
build a JDOM Document from the DOM model on their side of the
communication.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
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
Strange problem with JDOM, Xerces and XML Schemas Soeren Java 2 09-22-2004 10:17 AM
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



Advertisments