Changeset 22962 in osm for applications/editors
- Timestamp:
- 2010-09-03T01:43:46+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/AddWMSLayerPanel.java
r22942 r22962 53 53 import org.w3c.dom.Node; 54 54 import org.w3c.dom.NodeList; 55 import org.xml.sax.EntityResolver; 55 56 import org.xml.sax.InputSource; 56 57 import org.xml.sax.SAXException; … … 255 256 try { 256 257 DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); 258 builderFactory.setValidating(false); 257 259 builderFactory.setNamespaceAware(true); 258 260 DocumentBuilder builder = builderFactory.newDocumentBuilder(); 261 builder.setEntityResolver(new EntityResolver() { 262 public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException { 263 System.out.println("Ignoring DTD " + publicId + ", " + systemId); 264 return new InputSource(new StringReader("")); 265 } 266 }); 259 267 document = builder.parse(new InputSource(new StringReader(incomingData))); 260 268 } catch (ParserConfigurationException e) {
Note:
See TracChangeset
for help on using the changeset viewer.