if (mode == DOMImplementationLS.MODE_ASYNCHRONOUS) {
String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NOT_SUPPORTED_ERR", null);
throw new DOMException(DOMException.NOT_SUPPORTED_ERR, msg);
}
if (schemaType !=null && schemaType.equals("http://www.w3.org/TR/REC-xml")) {
return new DOMBuilderImpl("org.apache.xerces.parsers.DTDConfiguration", schemaType);
} else {
// create default parser configuration validating against XMLSchemas
return new DOMBuilderImpl("org.apache.xerces.parsers.StandardParserConfiguration", schemaType);
}
}