You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Ken Goldman <kg...@watson.ibm.com> on 2001/11/12 18:06:03 UTC

Xerces 1.4.1 DOMParser.getFeature question (bug?)

Since there's no list of featureID names in the javadocs, I tried
to write a small program to list the names and default values.

Is there a bug?  getFeaturesRecognized() returns a featureID which
getFeature() then claims is not recognized?

Here's a snippet:

	DOMParser parser = new DOMParser();
	String[] features = parser.getFeaturesRecognized();
	for (i = 0 ; i < features.length ; i++) {
	    String name = features[i];
	    boolean value = parser.getFeature(name);
	}

I get a exception trace on the 5th featureID.:

org.xml.sax.SAXNotRecognizedException: 
		http://apache.org/xml/features/validation/schema-full-checking
        at org.apache.xerces.framework.XMLParser.getFeature(XMLParser.java:1583)
        at org.apache.xerces.parsers.DOMParser.getFeature(DOMParser.java:764)
        at DOMFeatures.main(DOMFeatures.java:58)


-- 
Ken Goldman   kgold@watson.ibm.com   914-784-7646

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


Re: Xerces 1.4.1 DOMParser.getFeature question (bug?)

Posted by Andy Clark <an...@apache.org>.
Ken Goldman wrote:
> Since there's no list of featureID names in the javadocs, I tried
> to write a small program to list the names and default values.

Check out the "Features" and "Properties" pages in
the documentation for complete lists of the supported 
settings.

> Is there a bug?  getFeaturesRecognized() returns a featureID which
> getFeature() then claims is not recognized?

Sure sounds like it.

-- 
Andy Clark * IBM, TRL - Japan * andyc@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org