public void setFeature (String name, boolean value)
    throws SAXNotRecognizedException, SAXNotSupportedException
    {
    if (name.equals(NAMESPACES)) {
        checkNotParsing("feature", name);
        namespaces = value;
        if (!namespaces && !prefixes) {
        prefixes = true;
        }
    } else if (name.equals(NAMESPACE_PREFIXES)) {
        checkNotParsing("feature", name);
        prefixes = value;
        if (!prefixes && !namespaces) {
        namespaces = true;
        }
    } else if (name.equals(XMLNS_URIs)) {
        checkNotParsing("feature", name);
        uris = value;
    } else {
        throw new SAXNotRecognizedException("Feature: " + name);
    }
    }
public void setFeature ( String name , boolean value ) throws SAXNotRecognizedException , SAXNotSupportedException { if ( name . equals ( NAMESPACES ) ) { checkNotParsing ( "feature" , name ) ; namespaces = value ; if ( ! namespaces && ! prefixes ) { prefixes = true ; } } else if ( name . equals ( NAMESPACE_PREFIXES ) ) { checkNotParsing ( "feature" , name ) ; prefixes = value ; if ( ! prefixes && ! namespaces ) { namespaces = true ; } } else if ( name . equals ( XMLNS_URIs ) ) { checkNotParsing ( "feature" , name ) ; uris = value ; } else { throw new SAXNotRecognizedException ( "Feature: " + name ) ; } }
Set a feature flag for the parser.

<p>The only features recognized are namespaces and
namespace-prefixes.</p>

@param name The feature name, as a complete URI.
@param value The requested feature value.
@exception SAXNotRecognizedException If the feature
can't be assigned or retrieved.
@exception SAXNotSupportedException If the feature
can't be assigned that value.
@see org.xml.sax.XMLReader#setFeature