Changeset 30495 in osm for applications/editors/josm/plugins/imagery-xml-bounds
- Timestamp:
- 2014-06-14T14:05:38+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/imagery-xml-bounds
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery-xml-bounds/build.xml
r30416 r30495 4 4 <property name="commit.message" value="Commit message"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="7 001"/>6 <property name="plugin.main.version" value="7248"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
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.