import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; public class Treff extends DefaultHandler { public void startElement(String nsURI, String lName, String qName, Attributes atts) throws SAXException { System.out.println("Got start tag"); } } private void parseResults(String s) { try { SAXParser p = SAXParserFactory.newInstance().newSAXParser(); p.parse(new InputSource(s), new Treff()); } catch (Exception e) { e.printStackTrace(); } } Running with storage root temp.DefaultColorPhone43 Running with locale: Norwegian (Bokmål)_Norway.1252 org.xml.sax.SAXParseException: at org.xml.sax.helpers.DefaultHandler.fatalError(+1) at com.sun.ukit.jaxp.Parser.panic(+18) at com.sun.ukit.jaxp.Parser.setinp(+186) at com.sun.ukit.jaxp.Parser.parse(+42) at rvs.tod075.oving4.Dictionary.parseResults(+26) at rvs.tod075.oving4.Dictionary.startApp(+16) at javax.microedition.midlet.MIDletProxy.startApp(+7) at com.sun.midp.midlet.Scheduler.schedule(+270) at com.sun.midp.main.Main.runLocalClass(+28) at com.sun.midp.main.Main.main(+116) Execution completed. 3419605 bytecodes executed 197 thread switches 1649 classes in the system (including system classes) 18032 dynamic objects allocated (541024 bytes) 4 garbage collections (458936 bytes collected)