[jdom-interest] JDOM b8 and Apache Xerces-J 2.0.2

Sullivan, Sean C - MLG Sullivan.Sean at menlolog.com
Fri Jul 5 10:35:47 PDT 2002


I am using JDOM b8

I just switched from Apache Crimson 1.1.3 (crimson.jar) 
to Apache Xerces-J 2.0.2

Here is what I did:

1) download Xerces-J 2.0.2 

	http://xml.apache.org/dist/xerces-j/

2) unzip Xerces-J-bin.2.0.2.zip

3) remove crimson.jar from my application classpath

4) add xercesImpl.jar and xmlParserAPIs.jar to my application classpath

5) update my usage of org.jdom.input.SAXBuilder

   http://www.jdom.org/docs/apidocs/org/jdom/input/SAXBuilder.html

   I set the saxDriverClass parameter to
   "org.apache.xerces.parsers.SAXParser"

Cheers,

-Sean



> From: Eric Hartmann 
> 
> We use Xerces and JDOM for a long time and since Xerces 2.0.1, we moved
> from 1.4.4 to 2.0.1. But I have two problems :
> * Xerces 2.0.2 does not validate some XML files with XSD files (without
> JDOM)
> * There is a strange bug while outputting the result of XSL operation
> when the source is a JDOMSource and has a DTD
> (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8012). This bug is
> still present in Xerces 2.0.2
> 
> Except those two problems everything works like a charm !
> 



More information about the jdom-interest mailing list