Thanks for your reply! Would it help if I added the object to the arraylist in the endelement() method?
On Jun 30, 6:40 pm, Frank Weiss <[email protected]> wrote: > I'm assuming that your input XML is very simple and uses no element > attributes, namespaces, or recursively nested elements. I recommend > you use the following pattern, which I've used countless times: > > Use a StringBuffer or StringBuilder to collect character data. > Initialize it in startElement. In the characters method, do only the > following: sb.append(ch, start, length). Please note that SAX parsers > are not required to return the full contents of a text node in a > single call to characters(). For efficiency, the parser may use an > input buffer which may be smaller than a particular text node. A lot > of people seem to miss this. Do the major processing in the > endElement() method. > > Do you use a debugger to step through your code? -- 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

