DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6777>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6777

-Djavax.xml.parsers.SAXParserFactory  not working

           Summary: -Djavax.xml.parsers.SAXParserFactory  not working
           Product: Xerces2-J
           Version: 2.0.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: JAXP
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In sample sax.Counter, I replaced XMLReaderFactory.createXMLReader(parserName)
with the JAXP way. For example like this:

===
...
SAXParserFactory parserf = null; 
SAXParser sparser = null;
XMLReader parser = null;
...
parserf = SAXParserFactory.newInstance();
sparser = parserf.newSAXParser();
parser = sparser.getXMLReader();
...
================================================

I tested it with personal.xml. It works fine.
BUT if I add:
  -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.parsers.SAXParser

I get error:
  error: Unable to instantiate parser (org.apache.xerces.parsers.SAXParser)

Should system property javax.xml.parsers.SAXParserFactory be supported
for SAXParserFactory.newInstance()?

I thought org.apache.xerces.parsers.SAXParser is a legal parser.
The original sax.Counter references it in
  protected static final String DEFAULT_PARSER_NAME
                         = "org.apache.xerces.parsers.SAXParser";

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to