• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to migrate the code from Crimson to Xerces?

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic