Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jul 2, 2020
1 parent 4b59454 commit e1d0527
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ private Optional<Style> tryLoadSLD(
// by setting a custom error handler.
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
DocumentBuilder db = dbf.newDocumentBuilder();
db.setErrorHandler(new ErrorHandler());
db.parse(new ByteArrayInputStream(bytes));
Expand Down

0 comments on commit e1d0527

Please # to comment.