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
Asked
Active
Viewed 1,991 times
2
-
2the cdata is not getting what? – James Becwar Nov 04 '11 at 11:56
-
want to get contents inside the cdata <![CDATA[ Fonction publique ]]> – harish Nov 04 '11 at 12:04
-
It should "just work". You'll need to show us some code before we could suggest why it isn't. – Quentin Nov 04 '11 at 12:20
1 Answers
1
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

marc_s
- 732,580
- 175
- 1,330
- 1,459

James Becwar
- 1,176
- 2
- 11
- 20