new DocumentBuilderImpl(this, attributes, features).getDOMParser(); return domParser.getProperty(name); } catch (SAXException se1) {
if( isValidating() ) { domParser.setFeature(XMLSCHEMA_VALIDATION_FEATURE, true); if( isValidating() ) { String value=(String)dbfAttrs.get(JAXP_SCHEMA_LANGUAGE); if(value !=null && W3C_XML_SCHEMA.equals(value)){
setErrorHandler(fInitErrorHandler); setFeatures(features); setDocumentBuilderFactoryAttributes(dbfAttrs);
new DocumentBuilderImpl(this, attributes, features); } catch (Exception e) { attributes.remove(name);
public Document parse(InputSource is) throws SAXException, IOException { if (is == null) { throw new IllegalArgumentException( DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "jaxp-null-input-source", null)); } if (fSchemaValidator != null) { if (fSchemaValidationManager != null) { fSchemaValidationManager.reset(); fUnparsedEntityHandler.reset(); } resetSchemaValidator(); } domParser.parse(is); Document doc = domParser.getDocument(); domParser.dropDocumentReferences(); return doc; }
/** * Creates a new instance of a {@link javax.xml.parsers.DocumentBuilder} * using the currently configured parameters. */ public DocumentBuilder newDocumentBuilder() throws ParserConfigurationException { /** Check that if a Schema has been specified that neither of the schema properties have been set. */ if (grammar != null && attributes != null) { if (attributes.containsKey(JAXPConstants.JAXP_SCHEMA_LANGUAGE)) { throw new ParserConfigurationException( SAXMessageFormatter.formatMessage(null, "schema-already-specified", new Object[] {JAXPConstants.JAXP_SCHEMA_LANGUAGE})); } else if (attributes.containsKey(JAXPConstants.JAXP_SCHEMA_SOURCE)) { throw new ParserConfigurationException( SAXMessageFormatter.formatMessage(null, "schema-already-specified", new Object[] {JAXPConstants.JAXP_SCHEMA_SOURCE})); } } try { return new DocumentBuilderImpl(this, attributes, features, fSecureProcess); } catch (SAXException se) { // Handles both SAXNotSupportedException, SAXNotRecognizedException throw new ParserConfigurationException(se.getMessage()); } }
DOMParser domParser = new DocumentBuilderImpl(this, attributes, features).getDOMParser(); return domParser.getFeature(name);
new DocumentBuilderImpl(this, attributes, features);