<b> </b>标记上的XML Parser错误无效字符

时间:2015-07-08 09:42:14

标签: xml xml-parsing rss cdata

我正在使用NSXMLParser编写XMLParser,但是当我尝试解析CDATA块中包含StringRequest request = new StringRequest(Method.POST, "post url", new ResponseListener() { @Override public void onResponse(String response) { Log.d("response", response); } catch (Exception e) { e.printStackTrace(); } } }, new ErrorListener() { @Override public void onErrorResponse(VolleyError error) { Log.e("response","error"); } }) { // post params @Override protected Map<String, String> getParams() throws AuthFailureError { Map<String, String> params = new HashMap<String, String>(); params.put("param", "param"); return params; } }; //2.Use your custom volley manager send request or like this 的Feed时,我收到此错误:XML Parser error invalid character (Unicode: 0xc) was found

我知道它不是来自我的代码,因为我在网上Feed验证器上遇到了同样的错误。我也确定它来自 标签,因为删除标签时错误消失了。

以下是相关Feed的一部分:

<b></b>

如您所见, 标记位于 <item> <title>Title</title> <link>http://www.mywebsite.com/2015/07/06/article/?utm_source=rss&amp;utm_medium=rss</link> <comments>http://www.mywebsite.com/2015/07/06/article/#comments</comments> <pubDate>Mon, 06 Jul 2015 07:30:01 +0000</pubDate> <dc:creator><![CDATA[author]]></dc:creator> <guid isPermaLink="false">17898</guid> <description><![CDATA[description]]></description> <content:encoded><![CDATA[<p><b>content: </b>content.<b></b></p>]]></content:encoded> <slash:comments>20</slash:comments> </item> CDATA块的末尾

0 个答案:

没有答案