Ticket #6647: patch.diff

File patch.diff, 954 bytes (added by Don-vip, 14 years ago)
  • src/org/openstreetmap/josm/io/OsmReader.java

     
    119119        @Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
    120120
    121121            try {
    122                 if (qName.equals("osm")) {
     122                if (qName.equals("osm") || qName.equals("osmChange")) {
    123123                    if (atts == null) {
    124                         throwException(tr("Missing mandatory attribute ''{0}'' of XML element {1}.", "version", "osm"));
     124                        throwException(tr("Missing mandatory attribute ''{0}'' of XML element {1}.", "version", qName));
    125125                    }
    126126                    String v = atts.getValue("version");
    127127                    if (v == null) {