This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes How to migrate the code from Crimson to Xerces? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to migrate the code from Crimson to Xerces?" Watch "How to migrate the code from Crimson to Xerces?" New topic
Author

How to migrate the code from Crimson to Xerces?

satya kiran
Ranch Hand

Joined: Nov 07, 2000
Posts: 52
Hi,
I am parsing the xml document (SAX Parse) and using crimson.jar with jaxp. I am seeing the performance problems on AIX 4.3. I want to use xerces 2.5 instead of crimson. Could you please let me know what changes i need to make in the source code to use the xerces.
I read an article saying that xerces is faster in AIX machine JVM's where as crimson efficient in Sun Machines.
Thanks in advance for your help.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
If you're already using JAXP (your code is not importing anything Xerces-specific), there is no code changes required to switch to using Xerces under the hood -- just set the "javax.xml.parsers.DocumentBuilderFactory" system property to point to the Xerces implementation of that particular interface (or "javax.xml.parsers.SAXParserFactory" for SAX).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
wood burning stoves
 
subject: How to migrate the code from Crimson to Xerces?
 
Similar Threads
Endorsed Standard Mechnaism in jdk 1.4.2
error while displaying parsed document?
Axis Parser Error
App chokes when SAX-parsing an XML file without a DTD file
What is the difference between ..