I don't know if I am to be happy (since it works) or sad (because I wasted 8+ hours) but thanks! Now the html encoding problems works :-) Guess I have to retry the international RSS feeds and see if it was related to this.
I've never used a XML library that behaves this way.. -Christer On 25 Jan, 20:02, Mark Murphy <[email protected]> wrote: > Chister Nordvik wrote: > > The issue has still "new" status so either Google is just ignoring it > > or they think it's a bug in my code. > > > I tried a little more and I experienced similar problems when fetching > > XML that has encoded html inside the tags (typically RSS feeds). This > > code works perfectly when running on the desktop but on android it > > just refuses to give me the text after it encounters "<" in this > > node: > > <description>Test html chars: <b>v2.1</b> released.</ > > description> > > It splits the text into several child text nodes, not just one. Hence, > don't just use getFirstChild() -- iterate over all children. > > Leastways, that worked for & when I encountered a similar phenomenon. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

