This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to migrate the code from Crimson to Xerces?