aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to use JExamXML with Crimson" Watch "How to use JExamXML with Crimson" New topic
Author

How to use JExamXML with Crimson

Andrew Lapick
Greenhorn

Joined: Jun 12, 2006
Posts: 2
Hello,

A7Soft JExamXML (http://www.a7soft.com) uses XML parser Xerces. I want to use it with another XML parser.
(Crimson for instance) Can anybody help me.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18669
    
    8

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to use JExamXML with Crimson