Code examples for DocumentBuilderFactory

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
99:	documentBuilderFactory.setNamespaceAware(true); 
-
101:	documentBuilderFactory.setCoalescing(true); 
102:	documentBuilderFactory.setIgnoringComments(true); 
103:	documentBuilderFactory.setIgnoringElementContentWhitespace(false); 
-
105:	documentBuilderFactory.setExpandEntityReferences(false); 
106:	documentBuilderFactory.setValidating(false); 
Full Snippet Info
7
CodeRank
73:	logger.debug("Using JAXP provider [" + factory.getClass().getName() + "]"); 
-
130:	DocumentBuilder docBuilder = factory.newDocumentBuilder(); 
Full Snippet Info
7
CodeRank
197:	dbf.setNamespaceAware(true); 
198:	DocumentBuilder builder = dbf.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
26:	documentBuilderFactory.setAttribute( 
-
28:	documentBuilderFactory.setAttribute( 
-
31:	documentBuilderFactory.setNamespaceAware(false); 
32:	documentBuilderFactory.setValidating(false); 
Full Snippet Info
6
CodeRank
375:	db = dbf.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
86:	documentBuilderFactory.setNamespaceAware(true); 
87:	documentBuilderFactory.setIgnoringElementContentWhitespace(true); 
88:	documentBuilderFactory.setIgnoringComments(true); 
Full Snippet Info
6
CodeRank
45:	dbf.setValidating(false); 
46:	dbf.setNamespaceAware(true); 
-
49:	db = dbf.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
57:	dbf.setNamespaceAware(true); 
58:	dbf.setValidating(false); 
-
75:	Document doc = dbf.newDocumentBuilder().parse(file); 
Full Snippet Info
6
CodeRank
631:	dbf.setNamespaceAware(true); 
632:	assertTrue(dbf.isNamespaceAware()); 
-
635:	DocumentBuilder parser = dbf.newDocumentBuilder(); 
-
650:	dbf.setNamespaceAware(false); 
651:	assertFalse(dbf.isNamespaceAware()); 
-
654:	DocumentBuilder parser = dbf.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
150:	return factory.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
275:	validatingDocumentBuilderFactory.setCoalescing(true); 
276:	validatingDocumentBuilderFactory.setIgnoringComments(true); 
277:	validatingDocumentBuilderFactory.setValidating(true); 
278:	validatingDocumentBuilderFactory.setIgnoringElementContentWhitespace(true); 
Full Snippet Info
6
CodeRank
109:	factory.setNamespaceAware(true); 
110:	factory.setValidating(true); 
-
112:	factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA); 
-
114:	throw new RuntimeException(factory.getClass().getName() + ": parser does not support JAXP 1.2", x); 
-
116:	factory.setAttribute(JAXP_SCHEMA_SOURCE, new ByteArrayInputStream(schema.readBytes())); 
Full Snippet Info
6
CodeRank
179:	dbf.setNamespaceAware(true); 
-
181:	DocumentBuilder db = dbf.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
57:	dbf.setNamespaceAware(true); 
58:	dbf.setValidating(false); 
-
75:	Document doc = dbf.newDocumentBuilder().parse(file); 
Full Snippet Info
6
CodeRank
109:	dbf.setNamespaceAware(true); 
-
111:	docBuilder = dbf.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
25:	this.documentBuilderFactory.setCoalescing(true); 
26:	this.documentBuilderFactory.setNamespaceAware(true); 
27:	this.documentBuilderFactory.setValidating(false); 
28:	this.documentBuilder= this.documentBuilderFactory.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
381:	db = dbf.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
86:	dbf.setNamespaceAware(true); 
87:	docBuilder = dbf.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
48:	factory.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", Boolean.FALSE); 
49:	factory.setExpandEntityReferences(false); 
50:	documentBuilder = factory.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank
26:	builder = documentBuilderFactory.newDocumentBuilder(); 
Full Snippet Info
6
CodeRank