You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Elango <el...@daon.com> on 2001/12/17 18:49:20 UTC

How to use jaxp with xerces in VA Java environment

Hi,

	I am trying to use Xerces parser 1.4.3 with along with jaxp 1.1 in
Visual Age java environment. Jaxp is taking crimson as its default
implementation.

	How can I configure JAXP to use Xerces as its implementation parser
class.


Thanks in Advance

Elango
***********************************************************************************************************
"The email and any files transmitted with it are confidential and privileged and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised direct or indirect dissemination, distribution or copying of this message and any attachments is strictly prohibited."
************************************************************************************************************
		<<This E-mail has been scanned for malicious code>>

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


Re: How to use jaxp with xerces in VA Java environment

Posted by Pim van Wetten <pv...@xs4all.nl>.
Hi Elango,

I got this from an article on Developerworks:

"Changing the parser
The last topic we need to address in dealing with JAXP is the ability to
easily change out the parser used by the factory classes.

Changing the parser used by JAXP actually means changing the parser factory,
because all SAXParser and

DocumentBuilder instances come from these factories. Since the factories
determine which parser is loaded, it's the

factories that must change. The implementation of the SAXParserFactory
interface to be used can be changed by setting

the Java system property javax.xml.parsers.SAXParserFactory. If this
property isn't defined, then the default

implementation (whatever parser your vendor specified) is returned. The same
principle applies for the

DocumentBuilderFactory implementation you use. In this case, the

javax.xml.parsers.DocumentBuilderFactory system property is queried."

So it comes basically down to finding the 2 system property files and change
it to the right parser. At Crimson this is:
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl, at Xerces this must be
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.

Hope this works,

Pim

----- Original Message -----
From: "Elango" <el...@daon.com>
To: <xe...@xml.apache.org>
Sent: Monday, December 17, 2001 6:49 PM
Subject: How to use jaxp with xerces in VA Java environment


> Hi,
>
> I am trying to use Xerces parser 1.4.3 with along with jaxp 1.1 in
> Visual Age java environment. Jaxp is taking crimson as its default
> implementation.
>
> How can I configure JAXP to use Xerces as its implementation parser
> class.
>
>
> Thanks in Advance
>
> Elango
>
****************************************************************************
*******************************
> "The email and any files transmitted with it are confidential and
privileged and intended solely for the use of the individual or entity to
whom they are addressed. Any unauthorised direct or indirect dissemination,
distribution or copying of this message and any attachments is strictly
prohibited."
>
****************************************************************************
********************************
> <<This E-mail has been scanned for malicious code>>
>
> ---------------------------------------------------------------------
> 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


Re: How to use jaxp with xerces in VA Java environment

Posted by Savita S <sa...@india.hp.com>.
Hi Elango,

If u want to use xerces with Jaxp.In ur classpath put jaxp.jar and xerces.jar instead jaxp.jar and crimson.jar.

Hope this will help u.

Regards

Savita.
Elango wrote:

> Hi,
>
>         I am trying to use Xerces parser 1.4.3 with along with jaxp 1.1 in
> Visual Age java environment. Jaxp is taking crimson as its default
> implementation.
>
>         How can I configure JAXP to use Xerces as its implementation parser
> class.
>
> Thanks in Advance
>
> Elango
> ***********************************************************************************************************
> "The email and any files transmitted with it are confidential and privileged and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised direct or indirect dissemination, distribution or copying of this message and any attachments is strictly prohibited."
> ************************************************************************************************************
>                 <<This E-mail has been scanned for malicious code>>
>
> ---------------------------------------------------------------------
> 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