Changeset 30495 in osm for applications/editors/josm/plugins/imagery-xml-bounds/src/org
- Timestamp:
- 2014-06-14T14:05:38+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/io/ValidatingImageryReader.java
r30342 r30495 9 9 import javax.xml.validation.SchemaFactory; 10 10 11 import org.openstreetmap.josm.io. MirroredInputStream;11 import org.openstreetmap.josm.io.CachedFile; 12 12 import org.openstreetmap.josm.io.imagery.ImageryReader; 13 13 import org.openstreetmap.josm.plugins.imageryxmlbounds.XmlBoundsConstants; … … 34 34 public static void validate(String source) throws SAXException, IOException { 35 35 SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); 36 Schema schema = factory.newSchema(new StreamSource(new MirroredInputStream(XML_SCHEMA)));36 Schema schema = factory.newSchema(new StreamSource(new CachedFile(XML_SCHEMA).getInputStream())); 37 37 schema.newValidator().validate(new StreamSource(source)); 38 38 }
Note:
See TracChangeset
for help on using the changeset viewer.