Bug 4204 - XMLReaderFactory.createXMLReader() fails unless the org.xml.sax.driver property is set
Summary: XMLReaderFactory.createXMLReader() fails unless the org.xml.sax.driver proper...
Status: NEW
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: SAX (show other bugs)
Version: 1.4.3
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
Depends on:
Reported: 2001-10-16 09:55 UTC by elharo
Modified: 2004-11-16 19:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description elharo 2001-10-16 09:55:57 UTC
The no-args org.xml.sax.helpers.XMLReaderFactory.createXMLReader() method fails
(throws a SAXException) unless the org.xml.sax.driver property is set. If this
property is not set, this methoid should not fail. Instead it should fall back
to the standard Xerces parser, probably org.xml.parsers.SAXParser.

This is in accordance with the SAX documentaiton for this class
which states:

Note to Distributions bundled with parsers:  You should modify the
implementation of the no-arguments createXMLReader to handle cases where the
external configuration mechanisms aren't set up. That method should do its best
to return a parser when one is in the class path, even when nothing bound its
class name to org.xml.sax.driver so those configuration mechanisms would see it.