harish
harish

Reputation: 1765

How to remove CDATA from my xml parser?

Hi i need to remove the CDATA from the xml which i need to parse . I parse all the values but the cdata is not getting. please help me on this

Upvotes: 2

Views: 2049

Answers (1)

James Becwar
James Becwar

Reputation: 1206

Normally the parser ignores CDATA by definition, but in android you can get it by using the nexttoken function to find it and then gettext to retrieve the text inside of it.

You can read about it on this page: http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html

Upvotes: 1

Related Questions