Reputation: 1765
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
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