List of utility methods to do XML DocumentBuilder Create
DocumentBuilder | newDocumentBuilder() Creates and returns a new DocumentBuilder . return _dbf.newDocumentBuilder();
|
DocumentBuilder | newDocumentBuilder(Boolean disallowDoctypeDecl) new Document Builder DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); dbf.setValidating(false); dbf.setFeature("http://xml.org/sax/features/external-general-entities", false); dbf.setFeature("http://xml.org/sax/features/external-parameter-entities", false); boolean isDissalowDoctypeDecl = disallowDoctypeDecl == null ? true : disallowDoctypeDecl; dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", isDissalowDoctypeDecl); dbf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); ... |
DocumentBuilder | newDocumentBuilder(boolean ignoreWhitespace, boolean ignoreComment) new Document Builder try { DocumentBuilderFactory dbf = createDefaultDocumentBuilderFactory(); dbf.setIgnoringElementContentWhitespace(ignoreWhitespace); dbf.setIgnoringComments(ignoreComment); return dbf.newDocumentBuilder(); } catch (ParserConfigurationException e) { e.printStackTrace(); throw new IllegalStateException(e); ... |
DocumentBuilder | newDocumentBuilder(boolean nsAware, boolean validating) new Document Builder return newDocumentBuilder(nsAware, validating, false, false);
|
DocumentBuilder | newDocumentBuilder(Schema schema, boolean isNamespaceAware, boolean isXIncludeAware) new Document Builder DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(isNamespaceAware);
factory.setXIncludeAware(isXIncludeAware);
if (schema != null) {
factory.setSchema(schema);
factory.setValidating(false);
DocumentBuilder builder = null;
...
|
DocumentBuilderFactory | newDocumentBuilderFactory() Instantiate a new DocumentBuilderFactory. DocumentBuilderFactory piTmp0 = null; piTmp0 = AccessController.doPrivileged(new PrivilegedAction<DocumentBuilderFactory>() { public DocumentBuilderFactory run() { return DocumentBuilderFactory.newInstance(); }); return piTmp0; |
DocumentBuilderFactory | newDocumentBuilderFactory() new Document Builder Factory DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
return dbf;
|
DocumentBuilderFactory | newDocumentBuilderFactory() new Document Builder Factory factoryLock.lock(); try { return DocumentBuilderFactory.newInstance(); } finally { factoryLock.unlock(); |