I tracked down a tutorial that explains how you use system properties to force the JVM to use a particular parser implementation. Here's what it said:
The factory APIs give you the ability to plug in an XML implementation offered by another vendor without changing your source code. The implementation you get depends on the setting of the javax.xml.parsers.SAXParserFactory and javax.xml.parsers.DocumentBuilderFactory system properties. The default values (unless overridden at runtime) point to the reference implementation.
So you need to do this:
1. Find out what values to assign to these properties for Xerces.
2. Configure Websphere with those values.
3. Make sure Xerces is actually in Websphere's classpath. (I don't think setting the CLASSPATH environment variable is the way to do that.)
I haven't tried this so I have no idea whether it will work or what problems might arise if you do it.
Joined: Apr 04, 2007
I just found the property values which we need to set for Xerces parser. Following are the four properties: