xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott McLaughlin" <MCLA...@war.wyeth.com>
Subject question about xerces 1.2.3 and jaxp
Date Fri, 19 Jan 2001 14:38:52 GMT
I am trying to use the setFeature method of javax.xml.parsers.SAXParserFactory, but I am running
 into a problem when I run the application.  

Here is the code I am using :

SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setFeature("http://xml.org/sax/features/namespace-prefixes", false);
SAXParser parser = factory.newSAXParser();
when I run this code I get the following Error:

Error in parsing: Feature: http://xml.org/sax/features/namespace-prefixes

If I replace the factory.setFeature() call with the one below after I create the parser I
don't get the error.
parser.getXMLReader().setFeature("http://xml.org/sax/features/namespace-prefixes", false);

What I am trying to find out, 
is this a known problem or is it something I am doing wrong? 

Scott McLaughlin 

View raw message