We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 820192c commit f44e693Copy full SHA for f44e693
src/edu/stanford/nlp/util/XMLUtils.java
@@ -302,6 +302,7 @@ public static DocumentBuilder getValidatingXmlParser(File schemaFile) {
302
DocumentBuilderFactory dbf = safeDocumentBuilderFactory();
303
304
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
305
+ factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
306
Schema schema = factory.newSchema(schemaFile);
307
dbf.setSchema(schema);
308
0 commit comments