• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to migrate the code from Crimson to Xerces?

 
satya kiran
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic