[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-user
Subject:    Re: DOMParser in JDK 1.4.0
From:       Simon Kitching <simon () ecnetwork ! co ! nz>
Date:       2002-08-30 0:28:48
[Download RAW message or body]

Hi Eric,

My solution is to use the java 1.4 "endorsed dir override"
functionality.

(a) put xercesImpl.jar and xml-apis.jar in a directory (called
"overrides" or similar)
(b) start java with
   java -Djava.endorsed.dirs=overrides .......

Don't put the jars in your CLASSPATH; java will add each jar in the
endorsed dir to the classpath automatically.

This feature is documented in the java 1.4 standard docs.

This of course overrides just for the application you are running. If
you like, you can install the files in the JVM's installation
directories to globally override stuff.


Regards,

Simon

On Fri, 2002-08-30 at 10:16, Bolduan, Eric R. wrote:
> 	This has probably been covered multiple times before but the mail archives are \
> currently not accessable so I can't check there: 
> 	 I am migrating code that previously was running within a Java application using \
> JDK 1.3.0 and Xerces-J 2.1.0 to run within an applet that is running with the Java \
> 1.4.0 plug-in.  JDK 1.4.0 has a version of Xerces in it that does not seem to \
> include the DOMParser class.  The code I am migrating needs to turn off the defer \
> node expansion feature and the only way I've found to do this was successfully was \
> through the DOMParser class setFeature method.  Without the DOMParser class \
> available I seem forced to use the DocumentBuilderFactory class and have been \
> unable to find a way to turn off the defer node expansion feature using this class. \
>   Any help you can provide is appreciated.  Thanks.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic