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
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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