Skip to content

Commit

Permalink
silence SAX error
Browse files Browse the repository at this point in the history
  • Loading branch information
Al Niessner authored and Al Niessner committed Jan 14, 2025
1 parent 1e1ee77 commit a031259
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private Transformer buildIsoTransformer() throws TransformerConfigurationExcepti
TransformerFactory isoFactory = TransformerFactory.newInstance();
try {
isoFactory.setFeature("http://javax.xml.XMLConstants/feature/secure-processing", true);
//isoFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
//isoFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, ""); see validate#1103
isoFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
} catch (TransformerConfigurationException e) {
throw new TransformerConfigurationException("Failed to configure TransformerFactory for secure processing", e);
Expand Down

0 comments on commit a031259

Please sign in to comment.