How to remove CDATA from my xml parser?

南笙酒味 提交于 2019-12-10 11:26:30

问题


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


回答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



来源:https://stackoverflow.com/questions/8008819/how-to-remove-cdata-from-my-xml-parser

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!