Changeset 319 in josm for src/org/openstreetmap/josm/tools


Ignore:
Timestamp:
2007-09-04T10:21:49+02:00 (18 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/tools/XmlObjectParser.java

    r298 r319  
    1414import java.util.concurrent.BlockingQueue;
    1515
     16import javax.xml.parsers.SAXParserFactory;
     17
    1618import org.xml.sax.Attributes;
     19import org.xml.sax.InputSource;
    1720import org.xml.sax.SAXException;
    18 
    19 import uk.co.wilson.xml.MinML2;
     21import org.xml.sax.helpers.DefaultHandler;
    2022
    2123/**
     
    4749        }
    4850
    49         private class Parser extends MinML2 {
     51        private class Parser extends DefaultHandler {
    5052                Stack<Object> current = new Stack<Object>();
    5153                String characters = "";
     
    169171                        @Override public void run() {
    170172                                try {
    171                                         parser.parse(in);
     173                                SAXParserFactory.newInstance().newSAXParser().parse(new InputSource(in), parser);
    172174                                } catch (Exception e) {
    173175                                        try {
Note: See TracChangeset for help on using the changeset viewer.