Ok then, try this:

on the command line set system property for the parser:
-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser
or -Dorg.xml.sax.parser=org.apache.xerces.parsers.DOMParser.

-----Original Message-----
From: Steve Buroff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 13, 2001 9:15 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: Buroff, Steven
Subject: RE: JAXP question


Doesn't work. Here is what I get:

C:\JAXP\examples\DOMEcho+>java -cp C:\JAXP\jaxp.jar;C:\xerces\xerces.j
ar;. DOMEcho ..\samples\namespace.xml
Exception in thread "main" javax.xml.parsers.FactoryConfigurationError
: java.lang.ClassNotFoundException: org.apache.crimson.jaxp.DocumentBu
ilderFactoryImpl
        at javax.xml.parsers.DocumentBuilderFactory.newInstance(Docume
ntBuilderFactory.java:118)
        at DOMEcho.main(DOMEcho.java:278)

Steve Buroff

-----Original Message-----
From: Shustef, Eugene [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 13, 2001 9:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: JAXP question


When you start your process, you can specify the classpath to your
xerces.jar with --classpath option, and that should 
set the system property to contain Xerces parser.

-----Original Message-----
From: Steve Buroff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 13, 2001 9:02 AM
To: xercesUserList
Cc: Buroff, Steven
Subject: JAXP question


Can someone tell me how to configure JAXP 1.1 to use xerces
instead of crimson. I couldn't find it in any of the JAXP
documentation. If it matters, I'm using xerces 1.3.0. TIA
 
Steve Buroff


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to