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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
