redders wrote: > I appreciate the reply, but I selected the SAX method because of its > efficiency advantages, so I'd really like to understand why my code > isn't working.
I don't use XMLReader and I have no problems with SAX on Android, such as this one parsing a XML payload from a REST request: BufferedReader in=new BufferedReader(new InputStreamReader(url.openStream())); SAXParserFactory f=SAXParserFactory.newInstance(); SAXParser p=f.newSAXParser(); SearchParser parser=new SearchParser(null); p.parse(new InputSource(in), parser); (where SearchParser is a DefaultHandler subclass) In your case, this would look like: SAXParserFactory f=SAXParserFactory.newInstance(); SAXParser p=f.newSAXParser(); StringReader sr = new StringReader(xmlMessage); InputSource is = new InputSource(sr); p.parse(is, this); Try something like that and see if it helps. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

