- Timestamp:
- 2020-06-07T17:19:38+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/XmlUtils.java
r16436 r16560 35 35 */ 36 36 public final class XmlUtils { 37 38 private static final String FEATURE_DISALLOW_DOCTYPE_DECL = "http://apache.org/xml/features/disallow-doctype-decl"; 37 39 38 40 private XmlUtils() { … … 101 103 SAXParserFactory parserFactory = SAXParserFactory.newInstance(); 102 104 parserFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); 105 parserFactory.setFeature(FEATURE_DISALLOW_DOCTYPE_DECL, true); 103 106 parserFactory.setNamespaceAware(true); 104 107 return parserFactory.newSAXParser();
Note:
See TracChangeset
for help on using the changeset viewer.