File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
biojava-core/src/main/java/org/biojava/nbio/core/util Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 3434import javax .xml .transform .TransformerFactory ;
3535import javax .xml .transform .dom .DOMSource ;
3636import javax .xml .transform .stream .StreamResult ;
37+ import javax .xml .XMLConstants ;
3738import javax .xml .xpath .XPath ;
3839import javax .xml .xpath .XPathConstants ;
3940import javax .xml .xpath .XPathExpressionException ;
@@ -105,6 +106,7 @@ public static Document inputStreamToDocument(InputStream inputStream) throws SAX
105106 DocumentBuilderFactory dbf = DocumentBuilderFactory .newInstance ();
106107
107108 DocumentBuilder db = dbf .newDocumentBuilder ();
109+ dbf .setFeature (XMLConstants .FEATURE_SECURE_PROCESSING , true );
108110
109111 Document doc = db .parse (inputStream );
110112 doc .getDocumentElement ().normalize ();
You can’t perform that action at this time.
0 commit comments