Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use JExamXML with Crimson

 
Andrew Lapick
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic