File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes How to use JExamXML with Crimson Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to use JExamXML with Crimson" Watch "How to use JExamXML with Crimson" New topic

How to use JExamXML with Crimson

Andrew Lapick

Joined: Jun 12, 2006
Posts: 2

A7Soft JExamXML ( uses XML parser Xerces. I want to use it with another XML parser.
(Crimson for instance) Can anybody help me.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

The standard way to affect what parser is used is to specify a system property and its value. If you want to have a particular DOM parser used, then you find the name of the DocumentBuilderFactory class that creates that parser (fully qualified class name of course) and assign its name to the javax.xml.parsers.DocumentBuilderFactory system property. Or if it's a SAX parser you want used, then you find the name of your SAXParserFactory and assign that name to the javax.xml.parsers.SAXParserFactory system property.

Of course it's possible your package might prevent this from working by hard-coding the Xerces parser class into their code. In that case there is nothing you can do except to get the code changed.
I agree. Here's the link:
subject: How to use JExamXML with Crimson
It's not a secret anymore!