fConfiguration.addRecognizedFeatures(domRecognizedFeatures);   fConfiguration.setFeature(DEFER_NODE_EXPANSION, false);   fConfiguration.setFeature(Constants.DOM_CANONICAL_FORM, false); fConfiguration.setFeature(Constants.DOM_CDATA_SECTIONS, true); fConfiguration.setFeature(Constants.DOM_CHARSET_OVERRIDES_XML_ENCODING, true); fConfiguration.setFeature(Constants.DOM_INFOSET, false); fConfiguration.setFeature(Constants.DOM_NAMESPACE_DECLARATIONS, true); fConfiguration.setFeature(Constants.DOM_SUPPORTED_MEDIATYPES_ONLY, false);    fConfiguration.setFeature(Constants.DOM_CERTIFIED, true);   fConfiguration.setFeature( NORMALIZE_DATA, false ); }
}
    public DOMBuilderImpl(XMLParserConfiguration config) {        super(config);                // add recognized features        final String[] domRecognizedFeatures = {            Constants.DOM_CANONICAL_FORM,            Constants.DOM_CDATA_SECTIONS,            Constants.DOM_CHARSET_OVERRIDES_XML_ENCODING,            Constants.DOM_INFOSET,            Constants.DOM_NAMESPACE_DECLARATIONS,            Constants.DOM_SUPPORTED_MEDIATYPES_ONLY,            Constants.DOM_CERTIFIED,        };        fConfiguration.addRecognizedFeatures(domRecognizedFeatures);        // turn off deferred DOM        fConfiguration.setFeature(DEFER_NODE_EXPANSION, false);                // set default values        fConfiguration.setFeature(Constants.DOM_CANONICAL_FORM, false);        fConfiguration.setFeature(Constants.DOM_CDATA_SECTIONS, true);        fConfiguration.setFeature(Constants.DOM_CHARSET_OVERRIDES_XML_ENCODING, true);        fConfiguration.setFeature(Constants.DOM_INFOSET, false);        fConfiguration.setFeature(Constants.DOM_NAMESPACE_DECLARATIONS, true);        fConfiguration.setFeature(Constants.DOM_SUPPORTED_MEDIATYPES_ONLY, false);                // REVISIT: by default Xerces assumes that input is certified.        //          default is different from the one specified in the DOM spec        fConfiguration.setFeature(Constants.DOM_CERTIFIED, true);        // Xerces datatype-normalization feature is on by default        fConfiguration.setFeature( NORMALIZE_DATA, false );     } // <init>(XMLParserConfiguration)