On Mon, Oct 18, 2010 at 8:05 AM, Neilz <[email protected]> wrote: > Mark, I was looking at this in the docs, but I'm confused by it. > nextToken() returns an int, right, which I can identify as CDSECT. But > I don't quite get how that gives me the text within the CDATA...?
Use getText() or getTextCharacters(). From the nextToken() documentation: "Here is the list of tokens that can be returned from nextToken() and what getText() and getTextCharacters() returns: ... CDSECT: return text inside CDATA (ex. 'fo<o' from <!CDATA[fo<o]]>)" -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

