对实体“f”的引用必须以';'结尾。分隔符
问题描述:
我在水库下面的XML文件/文件夹的原料 -对实体“f”的引用必须以';'结尾。分隔符
RSS的标题 http://urlofthething.com
<item>
<title>Title</title>
<description>The description goes here</description>
<link>http://someurl.someurl.com/data/Content/1771370477</link>
<guid>15626277</guid>
<pubDate>28 Jan 2011 19:07:00 +0000</pubDate>
<media:group>
<media:content medium="video" duration="273"
url="http://something.someurl.com/access/choice/u/0/1/15626277?rtspdirect=true&f=001110786488&stylesheet=mobile">
</media:content>
</media:group>
</item>
<item>
<title>Title</title>
<description>The description goes here</description>
<link>http://someurl.someurl.com/data/Content/1771370477</link>
<guid>15626277</guid>
<pubDate>28 Jan 2011 19:07:00 +0000</pubDate>
<media:group>
<media:content medium="video" duration="273"
url="http://something.someurl.com/access/choice/u/0/1/15626277?rtspdirect=true&f=001110786488&stylesheet=mobile">
</media:content>
</media:group>
</item>
</channel>
和我使用
InputStream ins = getResources().openRawResource(R.raw.myxmlfile);
来读取文件。
但是就行了 -
url="http://something.someurl.com/access/choice/u/0/1/15626277?rtspdirect=true&f=001110786488&stylesheet=mobile">
我收到以下错误 -
The reference to entity "f" must end with the ';' delimiter
答
由于这是XML格式,解析器期望&
符号位于诸如"
之类的实体之前。
尝试用&
代替&
,一切都应该没问题:这将被解析器理解为一个真正的&。
+0
你是男人! 感谢您的帮助! :d – 2015-12-01 23:41:39
[对实体“w”的引用必须以';'结尾)分隔符异常](http://stackoverflow.com/questions/6483807/the-reference-to-entity-w-must-end-with-the-delimiter-exception) – BalusC 2016-05-09 12:18:56