Form JAXP spec:
This method uses the following ordered lookup procedure to determine the
DocumentBuilderFactory implementation

class to load:

.Use the javax.xml.parsers.DocumentBuilderFactory system property

.Use the JAVA_HOME (the parent directory where jdk is
installed)/lib/jaxp.properties for a property file that contains

the name of the implementation class keyed on the same value as the system
property defined above.

.Use the Services API (as detailed in the JAR specification), if available,
to determine the classname. The Services

API will look for the classname in the file
META-INF/services/javax.xml.parsers.DocumentBuilderFactory

in jars available to the runtime.

.Platform default DocumentBuilderFactory instance.



--

Regards,

Rafal


----- Original Message -----
From: "Shankar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 11:18 AM
Subject: DOM Parsers...


> Hello,
>
> I have 2 projects, say Project A, Project B.
>
> For running the Project A I must use Xerces DOM Parser and
> for Project B I need Crimsion DOM Parser.
> I am using Websphere VisualAge4.0.
>
> I used the following code  for instatiating DOM Parser in Project A:
>  javax.xml.parsers.DocumentBuilderFactory  dbf =
> DocumentBuilderFactory.newInstance();
>
> When Project A alone is in the Websphere Environment classpath, it takes
> Xerces Parser and everything is O.K.
> But when I included both Projects in the Websphere Environment
> classpath, it alwaya takes Crimsion. So, I couldn't execute my Project A
> application.
>
> Anybody have any ideas how the "DocumentBuilderFactory.newInstance()"
> determines which parser to select when more than one parsers exists in
> the Websphere Environment..?
>
> Thanks in Advance,
> Shankar
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to