Applied trunk fix on revision r1833708 (OFBIZ-10435)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release17.12@1833709 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -431,6 +431,12 @@ public final class UtilXml {
|
||||
factory.setAttribute("http://xml.org/sax/features/validation", validate);
|
||||
factory.setAttribute("http://apache.org/xml/features/validation/schema", validate);
|
||||
|
||||
factory.setFeature("http://xml.org/sax/features/external-general-entities", false);
|
||||
factory.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
|
||||
factory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
|
||||
factory.setXIncludeAware(false);
|
||||
factory.setExpandEntityReferences(false);
|
||||
|
||||
// with a SchemaUrl, a URL object
|
||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||
if (validate) {
|
||||
|
||||
Reference in New Issue
Block a user