Code examples for SAXParserFactory

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.
344:	factory.setNamespaceAware(namespaceAware); 
345:	factory.setValidating(validating); 
346:	factory.setXIncludeAware(xIncludeAware); 
-
349:	SAXParser parser = factory.newSAXParser(); 
Full Snippet Info
7
CodeRank
164:	SAXParser sp = spf.newSAXParser(); 
-
266:	factory.setFeature("http://xml.org/sax/features/validation", false); 
267:	factory.setFeature("http://xml.org/sax/features/namespaces", true); 
268:	factory.setFeature("http://xml.org/sax/features/external-general-entities", !disableExternalEntities); 
269:	factory.setFeature("http://xml.org/sax/features/external-parameter-entities", !disableExternalEntities); 
270:	factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, enableSecureProcessingFeature); 
271:	factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", disableDTDs); 
Full Snippet Info
7
CodeRank
94:	fty.setNamespaceAware(nsaware); 
-
98:	fty.setValidating(validate); 
-
100:	_parser = fty.newSAXParser(); 
-
105:	fty.setFeature(feature, value); 
Full Snippet Info
7
CodeRank
75:	factory.setNamespaceAware(true); 
-
78:	factory = new SecureSaxParserFactory(factory); 
Full Snippet Info
7
CodeRank
81:	saxParserFactory.setNamespaceAware(true); 
82:	saxParserFactory.setValidating(false); 
-
84:	saxParserFactory.setFeature("http://apache.org/xml/features/validation/schema",true); 
85:	saxParserFactory.setFeature("http://xml.org/sax/features/validation", true); 
86:	saxParserFactory.setFeature("http://xml.org/sax/features/namespaces",true); 
-
96:	saxParserFactory.setFeature("http://apache.org/xml/features/allow-java-encodings",true); 
Full Snippet Info
7
CodeRank
58:	parserFactory.setNamespaceAware(true); 
59:	parserFactory.setValidating(false); 
60:	parserFactory.setFeature("http://apache.org/xml/features/validation/schema",true); 
61:	parserFactory.setFeature("http://xml.org/sax/features/validation", true); 
62:	parserFactory.setFeature("http://xml.org/sax/features/namespaces",true); 
-
72:	parserFactory.setFeature("http://apache.org/xml/features/allow-java-encodings",true); 
Full Snippet Info
7
CodeRank
43:	SAXParser saxParser = saxParserFactory.newSAXParser(); 
Full Snippet Info
6
CodeRank
94:	parserFactory.setFeature(XERCES_LOAD_EXTERNAL_DTD, false); 
-
96:	SAXParser parser = parserFactory.newSAXParser(); 
-
107:	parserFactory.setValidating(false); 
108:	parser = parserFactory.newSAXParser(); 
-
119:	parserFactory.getFeature(XERCES_LOAD_EXTERNAL_DTD); 
Full Snippet Info
6
CodeRank
54:	parserFactory.setValidating(false); 
55:	parserFactory.setNamespaceAware(true); 
-
57:	SAXParser parser = parserFactory.newSAXParser(); 
Full Snippet Info
6
CodeRank
131:	factory.setNamespaceAware(true); 
-
133:	factory.setFeature( 
Full Snippet Info
6
CodeRank
101:	SAX_FACTORY.setValidating(false); 
102:	SAXPARSER = SAX_FACTORY.newSAXParser(); 
Full Snippet Info
6
CodeRank
94:	fty.setNamespaceAware(nsaware); 
-
98:	fty.setValidating(validate); 
-
100:	_parser = fty.newSAXParser(); 
-
105:	fty.setFeature(feature, value); 
Full Snippet Info
6
CodeRank
66:	factory.setFeature("http://xml.org/sax/features/xmlns-uris", true); 
67:	factory.setFeature("http://xml.org/sax/features/namespace-prefixes", true); 
-
75:	SAXParser parser = factory.newSAXParser(); 
Full Snippet Info
6
CodeRank
100:	final SAXParser saxParser = saxParserFactory.newSAXParser(); 
Full Snippet Info
6
CodeRank
95:	spf.setNamespaceAware(true); 
96:	spf.setValidating(false); 
97:	spf.setFeature(NAMESPACES, true); 
98:	spf.setFeature(PREFIXES, false); 
-
100:	final SAXParser p = spf.newSAXParser(); 
Full Snippet Info
6
CodeRank
102:	super(SAXParserFactory.newInstance(factoryClassName, classloader), schema); 
103:	} 
104:	 
Full Snippet Info
6
CodeRank
42:	SAX_FACTORY.setValidating(false); 
43:	SAX_FACTORY.setNamespaceAware(false); 
44:	SAX_FACTORY.setFeature("http://xml.org/sax/features/validation", false); 
45:	SAX_FACTORY.setFeature("http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false); 
46:	SAX_FACTORY.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false); 
47:	SAX_FACTORY.setFeature("http://xml.org/sax/features/external-general-entities", false); 
48:	SAX_FACTORY.setFeature("http://xml.org/sax/features/external-parameter-entities", false); 
Full Snippet Info
6
CodeRank
26:	factory.setNamespaceAware(true); 
27:	factory.setValidating(false); 
Full Snippet Info
6
CodeRank
100:	spf.setFeature("http://xml.org/sax/features/external-general-entities", Boolean.FALSE); 
101:	spf.setFeature("http://xml.org/sax/features/external-parameter-entities", Boolean.FALSE); 
-
107:	spf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, Boolean.TRUE); 
Full Snippet Info
6
CodeRank