On Tue, Mar 6, 2012 at 4:52 PM, RedBullet <scottedchap...@gmail.com> wrote:
> I am talking about what I see when endELement event occurs. I end up with
> tempVal containing a partial element.

Correct. That is because your implementation is buggy. You may be
called with characters() several times for an element's text node(s),
and you are only holding onto the last value. Use StringBuilder or
something to concatenate your results.

> Is there some example I can see that does a proper job? Virtually every
> example I have seen seems to be making the same assumption I am...

http://stackoverflow.com/questions/4567636/java-sax-parser-split-calls-to-characters
http://stackoverflow.com/questions/4511955/sax-parser-issue
http://stackoverflow.com/questions/3201918/sax-parsing-in-android
http://stackoverflow.com/questions/8635414/sax-parser-returns-first-character-of-the-title

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to