Skip to content

Commit

Permalink
Improvements for XML parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
bhvkshah committed Sep 11, 2023
1 parent cf352f1 commit 9e5fa33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/amazon/redshift/jdbc/RedshiftSQLXML.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public synchronized <T extends Result> T setResult(Class<T> resultClass) throws
transformerFactory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
transformerFactory.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
transformerFactory.setFeature("http://xml.org/sax/features/external-general-entities", false);
transformerFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",false);

TransformerHandler transformerHandler = transformerFactory.newTransformerHandler();
stringWriter = new StringWriter();
Expand Down

0 comments on commit 9e5fa33

Please sign in to comment.