Skip to content

Commit

Permalink
Update XPathParser.java
Browse files Browse the repository at this point in the history
remove extra items, AI didn't add them on ibatis-2 so why here.  Just remove to see if it works then.
  • Loading branch information
hazendaz authored Sep 26, 2024
1 parent 1559f3a commit 650146b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/org/apache/ibatis/parsing/XPathParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ private Document createDocument(InputSource inputSource) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
factory.setFeature("http://xml.org/sax/features/external-general-entities", false);
factory.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
factory.setValidating(validation);

factory.setNamespaceAware(false);
Expand Down

0 comments on commit 650146b

Please sign in to comment.