[jdom-interest] SAX Parsers

David W. Smiley dsmiley at mitre.org
Wed Jul 19 16:38:06 PDT 2000


(1) What stance do the JDom developers take on the "Java API for XML Parsing" (javax.xml)
released by Sun?  It appears to be a standardized way of getting the DOM.  The API seems
to interfere / collide with the goals of SAX2 which also appears to be an emerging
standard.

(2) I hoped to use JDom without Xerces.  Since JDom needs SAX2, I downloaded the SAX2
library.  http://www.megginson.com/SAX/Java/  However, my app won't run because JDom's
SAXBuilder class refers to:
org/xml/sax/ext/LexicalHandler
which is not in the SAX2 library.

(3) I disagree with the constructors of SAXBuilder.  Its insistence that you must use a
String representation of the class that implements the SAX2 Parser has caused me to make
a dummy class that chooses the Parser I want and configures it.  (In particular what I
want to do is set a dummy entity resolver for the parser that causes the behavior of
setting the SAX2 Feature "http://xml.org/sax/features/external-parameter-entities" to
false.)  So, would it be OK if the SAXBuilder had a constructor that took an instance of
a SAX2 XMLReader class?

Thanks in advance for any input on these questions.

David Smiley
The MITRE Corporation





More information about the jdom-interest mailing list