Changeset 4808 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2012-01-17T13:16:11+01:00 (13 years ago)
Author:
bastiK
Message:

fixed #7247 - Error import GPX

File:
1 edited

Legend:

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

    r3408 r4808  
    8383        }
    8484
    85         @Override public void startElement(String namespaceURI, String qName, String rqName, Attributes atts) throws SAXException {
     85        @Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
    8686            elements.push(qName);
    8787            switch(currentState) {
     
    215215
    216216        @SuppressWarnings("unchecked")
    217         @Override public void endElement(String namespaceURI, String qName, String rqName) {
     217        @Override public void endElement(String namespaceURI, String localName, String qName) {
    218218            elements.pop();
    219219            switch (currentState) {
     
    367367        try {
    368368            SAXParserFactory factory = SAXParserFactory.newInstance();
    369             factory.setNamespaceAware(true);
     369            // support files with invalid xml namespace declarations (see #7247)
     370            factory.setNamespaceAware(false);
    370371            factory.newSAXParser().parse(inputSource, parser);
    371372            return true;
Note: See TracChangeset for help on using the changeset viewer.