如何从我的XML解析器删除CDATA? [英] How to remove CDATA from my xml parser?

查看:1759
本文介绍了如何从我的XML解析器删除CDATA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要从我需要解析XML删除CDATA。我分析所有的值,但在CDATA是没有得到。请帮我在这

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

推荐答案

Normaly解析器会忽略CDATA由deffinition,但是在android系统,你可以通过使用的nextToken功能找到它,然后gettext的以retive它里面的文字把它。

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

您可以在此页面上读到它:
http://developer.android.com/reference/org/xmlpull/v1 /XmlPullParser.html

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

这篇关于如何从我的XML解析器删除CDATA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆