----- Original Message -----
Sent: Wednesday, March 13, 2002 12:00 AM
Subject: [dom4j-user] Just starting out.

I'm rewriting a number of classes that I had originially written to use JDOM.  (After reading the DOM4J site, I saw the light!) 
Great ;-)
Anyway, I also went out to get the latest copy of Xerces (2.0.1), and I find that they have split it up.  Their explanation of the different jars doesn't help me understand which I need!  I know I need the xercesImpl.jar, but do I also need the xmlParsersAPIs.jar? 
 
I think so yes. Basically if you're using Xerces use whatever JARs their distro says to use.
 
And if I want DOM4J to use xerces (for validation), do I need to put either or both jars in the CLASSPATH _before_ the dom4j.jar?
If you use dom4j.jar with Xerces or Crimson then it'll just work. The order doesn't mattern. JAXP does all the magic for you.
 
The dom4j-full.jar also contains the stuff from xmlParsersAPIs.jar. (Basically the SAX and DOM interfaces). So eventually the dom4j-full.jar might be deprecated from further releases and we may say that dom4j also depends om xmlParsersAPIs.jar as well. Also if you're using Crimson or Xerces then dom4j.jar is better to use than dom4j-full.jar to avoid redundant copies of SAX & DOM interfaces.

James

Reply via email to