Changeset 1122 in josm
- Timestamp:
- 2008-12-13T23:29:54+01:00 (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxReader.java
r813 r1122 78 78 } 79 79 80 @Override public void startElement(String namespaceURI, String localName, StringqName, Attributes atts) throws SAXException {80 @Override public void startElement(String namespaceURI, String qName, String rqName, Attributes atts) throws SAXException { 81 81 switch(currentState) { 82 82 case init: … … 181 181 } 182 182 183 @Override public void endElement(String namespaceURI, String localName, StringqName) {183 @Override public void endElement(String namespaceURI, String qName, String rqName) { 184 184 switch (currentState) { 185 185 case metadata: … … 295 295 InputSource inputSource = new InputSource(new InputStreamReader(source, "UTF-8")); 296 296 try { 297 SAXParserFactory.newInstance().newSAXParser().parse(inputSource, parser); 298 data.storageFile = relativeMarkerPath; 297 SAXParserFactory factory = SAXParserFactory.newInstance(); 298 factory.setNamespaceAware(true); 299 factory.newSAXParser().parse(inputSource, parser); 299 300 } catch (ParserConfigurationException e) { 300 301 e.printStackTrace(); // broken SAXException chaining
Note:
See TracChangeset
for help on using the changeset viewer.