Ignore:
Timestamp:
2007-09-04T10:21:49+02:00 (17 years ago)
Author:
imi
Message:
  • removed MinML2 dependency (use javax.xml)
  • fixed reorder action (thanks Robert)
  • added backup files before saving (thanks Dave)
  • added search for last modifying user (thanks Dave)
  • fixed import of plugin list and added author field (thanks Shaun)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/io/OsmReader.java

    r298 r319  
    1515import java.util.Map;
    1616import java.util.Map.Entry;
     17
     18import javax.xml.parsers.ParserConfigurationException;
     19import javax.xml.parsers.SAXParserFactory;
    1720
    1821import org.openstreetmap.josm.Main;
     
    3134import org.openstreetmap.josm.tools.DateParser;
    3235import org.xml.sax.Attributes;
     36import org.xml.sax.InputSource;
    3337import org.xml.sax.SAXException;
    34 
    35 import uk.co.wilson.xml.MinML2;
     38import org.xml.sax.helpers.DefaultHandler;
    3639
    3740/**
     
    103106        private HashSet<String> allowedVersions = new HashSet<String>();
    104107
    105         private class Parser extends MinML2 {
     108        private class Parser extends DefaultHandler {
    106109                /**
    107110                 * The current osm primitive to be read.
     
    296299
    297300                // phase 1: Parse nodes and read in raw segments and ways
    298                 osm.new Parser().parse(new InputStreamReader(source, "UTF-8"));
     301                InputSource inputSource = new InputSource(new InputStreamReader(source, "UTF-8"));
     302                try {
     303                SAXParserFactory.newInstance().newSAXParser().parse(inputSource, osm.new Parser());
     304        } catch (ParserConfigurationException e1) {
     305                e1.printStackTrace(); // broken SAXException chaining
     306                throw new SAXException(e1);
     307        }
    299308                if (pleaseWaitDlg != null) {
    300309                        pleaseWaitDlg.progress.setValue(0);
Note: See TracChangeset for help on using the changeset viewer.