protected DOMConfigurationImpl(SymbolTable symbolTable,XMLComponentManager parentSettings){
  super(parentSettings);
  fRecognizedFeatures=new ArrayList();
  fRecognizedProperties=new ArrayList();
  fFeatures=new HashMap();
  fProperties=new HashMap();
  final String[] recognizedFeatures={XERCES_VALIDATION,XERCES_NAMESPACES,SCHEMA,SCHEMA_FULL_CHECKING,DYNAMIC_VALIDATION,NORMALIZE_DATA,SCHEMA_ELEMENT_DEFAULT,SEND_PSVI,GENERATE_SYNTHETIC_ANNOTATIONS,VALIDATE_ANNOTATIONS,HONOUR_ALL_SCHEMALOCATIONS,USE_GRAMMAR_POOL_ONLY,DISALLOW_DOCTYPE_DECL_FEATURE,BALANCE_SYNTAX_TREES,WARN_ON_DUPLICATE_ATTDEF,PARSER_SETTINGS,NAMESPACE_GROWTH,TOLERATE_DUPLICATES};
  addRecognizedFeatures(recognizedFeatures);
  setFeature(XERCES_VALIDATION,false);
  setFeature(SCHEMA,false);
  setFeature(SCHEMA_FULL_CHECKING,false);
  setFeature(DYNAMIC_VALIDATION,false);
  setFeature(NORMALIZE_DATA,false);
  setFeature(SCHEMA_ELEMENT_DEFAULT,false);
  setFeature(XERCES_NAMESPACES,true);
  setFeature(SEND_PSVI,true);
  setFeature(GENERATE_SYNTHETIC_ANNOTATIONS,false);
  setFeature(VALIDATE_ANNOTATIONS,false);
  setFeature(HONOUR_ALL_SCHEMALOCATIONS,false);
  setFeature(USE_GRAMMAR_POOL_ONLY,false);
  setFeature(DISALLOW_DOCTYPE_DECL_FEATURE,false);
  setFeature(BALANCE_SYNTAX_TREES,false);
  setFeature(WARN_ON_DUPLICATE_ATTDEF,false);
  setFeature(PARSER_SETTINGS,true);
  setFeature(NAMESPACE_GROWTH,false);
  setFeature(TOLERATE_DUPLICATES,false);
  final String[] recognizedProperties={XML_STRING,SYMBOL_TABLE,ERROR_HANDLER,ENTITY_RESOLVER,ERROR_REPORTER,ENTITY_MANAGER,VALIDATION_MANAGER,GRAMMAR_POOL,SECURITY_MANAGER,JAXP_SCHEMA_SOURCE,JAXP_SCHEMA_LANGUAGE,SCHEMA_LOCATION,SCHEMA_NONS_LOCATION,DTD_VALIDATOR_PROPERTY,DTD_VALIDATOR_FACTORY_PROPERTY,SCHEMA_DV_FACTORY};
  addRecognizedProperties(recognizedProperties);
  features|=NAMESPACES;
  features|=ENTITIES;
  features|=COMMENTS;
  features|=CDATA;
  features|=SPLITCDATA;
  features|=WELLFORMED;
  features|=NSDECL;
  if (symbolTable == null) {
    symbolTable=new SymbolTable();
  }
  fSymbolTable=symbolTable;
  fComponents=new ArrayList();
  setProperty(SYMBOL_TABLE,fSymbolTable);
  fErrorReporter=new XMLErrorReporter();
  setProperty(ERROR_REPORTER,fErrorReporter);
  addComponent(fErrorReporter);
  fDatatypeValidatorFactory=DTDDVFactory.getInstance();
  fXML11DatatypeFactory=DTDDVFactory.getInstance(XML11_DATATYPE_VALIDATOR_FACTORY);
  fCurrentDVFactory=fDatatypeValidatorFactory;
  setProperty(DTD_VALIDATOR_FACTORY_PROPERTY,fCurrentDVFactory);
  XMLEntityManager manager=new XMLEntityManager();
  setProperty(ENTITY_MANAGER,manager);
  addComponent(manager);
  fValidationManager=createValidationManager();
  setProperty(VALIDATION_MANAGER,fValidationManager);
  if (fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN) == null) {
    XMLMessageFormatter xmft=new XMLMessageFormatter();
    fErrorReporter.putMessageFormatter(XMLMessageFormatter.XML_DOMAIN,xmft);
    fErrorReporter.putMessageFormatter(XMLMessageFormatter.XMLNS_DOMAIN,xmft);
  }
  if (fErrorReporter.getMessageFormatter("http://www.w3.org/TR/xml-schema-1") == null) {
    MessageFormatter xmft=null;
    try {
      xmft=(MessageFormatter)(ObjectFactory.newInstance("mf.org.apache.xerces.impl.xs.XSMessageFormatter",ObjectFactory.findClassLoader(),true));
    }
 catch (    Exception exception) {
    }
    if (xmft != null) {
      fErrorReporter.putMessageFormatter("http://www.w3.org/TR/xml-schema-1",xmft);
    }
  }
  try {
    setLocale(Locale.getDefault());
  }
 catch (  XNIException e) {
  }
}

protected DOMConfigurationImpl ( SymbolTable symbolTable , XMLComponentManager parentSettings ) { super ( parentSettings ) ; fRecognizedFeatures = new ArrayList ( ) ; fRecognizedProperties = new ArrayList ( ) ; fFeatures = new HashMap ( ) ; fProperties = new HashMap ( ) ; final String [ ] recognizedFeatures = { XERCES_VALIDATION , XERCES_NAMESPACES , SCHEMA , SCHEMA_FULL_CHECKING , DYNAMIC_VALIDATION , NORMALIZE_DATA , SCHEMA_ELEMENT_DEFAULT , SEND_PSVI , GENERATE_SYNTHETIC_ANNOTATIONS , VALIDATE_ANNOTATIONS , HONOUR_ALL_SCHEMALOCATIONS , USE_GRAMMAR_POOL_ONLY , DISALLOW_DOCTYPE_DECL_FEATURE , BALANCE_SYNTAX_TREES , WARN_ON_DUPLICATE_ATTDEF , PARSER_SETTINGS , NAMESPACE_GROWTH , TOLERATE_DUPLICATES } ; addRecognizedFeatures ( recognizedFeatures ) ; setFeature ( XERCES_VALIDATION , false ) ; setFeature ( SCHEMA , false ) ; setFeature ( SCHEMA_FULL_CHECKING , false ) ; setFeature ( DYNAMIC_VALIDATION , false ) ; setFeature ( NORMALIZE_DATA , false ) ; setFeature ( SCHEMA_ELEMENT_DEFAULT , false ) ; setFeature ( XERCES_NAMESPACES , true ) ; setFeature ( SEND_PSVI , true ) ; setFeature ( GENERATE_SYNTHETIC_ANNOTATIONS , false ) ; setFeature ( VALIDATE_ANNOTATIONS , false ) ; setFeature ( HONOUR_ALL_SCHEMALOCATIONS , false ) ; setFeature ( USE_GRAMMAR_POOL_ONLY , false ) ; setFeature ( DISALLOW_DOCTYPE_DECL_FEATURE , false ) ; setFeature ( BALANCE_SYNTAX_TREES , false ) ; setFeature ( WARN_ON_DUPLICATE_ATTDEF , false ) ; setFeature ( PARSER_SETTINGS , true ) ; setFeature ( NAMESPACE_GROWTH , false ) ; setFeature ( TOLERATE_DUPLICATES , false ) ; final String [ ] recognizedProperties = { XML_STRING , SYMBOL_TABLE , ERROR_HANDLER , ENTITY_RESOLVER , ERROR_REPORTER , ENTITY_MANAGER , VALIDATION_MANAGER , GRAMMAR_POOL , SECURITY_MANAGER , JAXP_SCHEMA_SOURCE , JAXP_SCHEMA_LANGUAGE , SCHEMA_LOCATION , SCHEMA_NONS_LOCATION , DTD_VALIDATOR_PROPERTY , DTD_VALIDATOR_FACTORY_PROPERTY , SCHEMA_DV_FACTORY } ; addRecognizedProperties ( recognizedProperties ) ; features |= NAMESPACES ; features |= ENTITIES ; features |= COMMENTS ; features |= CDATA ; features |= SPLITCDATA ; features |= WELLFORMED ; features |= NSDECL ; if ( symbolTable == null ) { symbolTable = new SymbolTable ( ) ; } fSymbolTable = symbolTable ; fComponents = new ArrayList ( ) ; setProperty ( SYMBOL_TABLE , fSymbolTable ) ; fErrorReporter = new XMLErrorReporter ( ) ; setProperty ( ERROR_REPORTER , fErrorReporter ) ; addComponent ( fErrorReporter ) ; fDatatypeValidatorFactory = DTDDVFactory . getInstance ( ) ; fXML11DatatypeFactory = DTDDVFactory . getInstance ( XML11_DATATYPE_VALIDATOR_FACTORY ) ; fCurrentDVFactory = fDatatypeValidatorFactory ; setProperty ( DTD_VALIDATOR_FACTORY_PROPERTY , fCurrentDVFactory ) ; XMLEntityManager manager = new XMLEntityManager ( ) ; setProperty ( ENTITY_MANAGER , manager ) ; addComponent ( manager ) ; fValidationManager = createValidationManager ( ) ; setProperty ( VALIDATION_MANAGER , fValidationManager ) ; if ( fErrorReporter . getMessageFormatter ( XMLMessageFormatter . XML_DOMAIN ) == null ) { XMLMessageFormatter xmft = new XMLMessageFormatter ( ) ; fErrorReporter . putMessageFormatter ( XMLMessageFormatter . XML_DOMAIN , xmft ) ; fErrorReporter . putMessageFormatter ( XMLMessageFormatter . XMLNS_DOMAIN , xmft ) ; } if ( fErrorReporter . getMessageFormatter ( "http://www.w3.org/TR/xml-schema-1" ) == null ) { MessageFormatter xmft = null ; try { xmft = ( MessageFormatter ) ( ObjectFactory . newInstance ( "mf.org.apache.xerces.impl.xs.XSMessageFormatter" , ObjectFactory . findClassLoader ( ) , true ) ) ; } catch ( Exception exception ) { } if ( xmft != null ) { fErrorReporter . putMessageFormatter ( "http://www.w3.org/TR/xml-schema-1" , xmft ) ; } } try { setLocale ( Locale . getDefault ( ) ) ; } catch ( XNIException e ) { } }
constructs a parser configuration using the specified symbol table and parent settings .
