Re: [android-developers] XML Parsing Strange Error
I think you have two errors:
1) In the characters() method, you should append the given character
span to a StringBuffer or StringBuilder (which you reset for each
startElement:
@Override
public void characters(char[] ch, int offset, int count) {
sb.append(ch, offset, count);
}
2) Perform the data collection in the endElement method.
The problem may well be that since you are setting id and myName false
after just getting a part of the text node content, you're not getting
the full content. If you want I can explain how to use the
characters() method correctly.
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home