XML解析错误:<unknown>:4:0:格式不正确(令牌无效)

时间:2017-04-01 03:03:46

标签: xml itunes feed

我完全不知道为什么这会突然发生错误。

XML解析错误:

  

<unknown>:4:0:格式不正确(令牌无效)

XML

<?xml version="1.0" encoding="iso-8859-1"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"
<channel>
<title>The Deep(ish) Thoughts Podcast</title>
<link>http://www.deepishthoughts.com</link>
<language>en-us</language>
<copyright>2017</copyright>
<description> The Deep(ish) Thoughts Podcast </description>
<itunes:subtitle>Sports talk with Chris Horwedel and Anshu Khanna of DeepishThoughts.com</itunes:subtitle>
<itunes:author>Deep(ish) Thoughts</itunes:author>
<itunes:summary>Chris Horwedel and Anshu Khanna of Deep(ish) Thoughts talk about the biggest sports stories of the week.</itunes:summary>
<itunes:keywords> NFL, NBA, Sports, College Football, MLB, NHL, News, My Block Radio, Horwedel, Glymph </itunes:keywords>
<itunes:owner>
<itunes:name>Chris Horwedel</itunes:name>
<itunes:email>Hordel44@aol.com</itunes:email>
</itunes:owner>
<itunes:image href="http://www.archive.org/download/DTPitunes/DTPitunes.png"/>
<itunes:category text="Sports & Recreation"/>
<itunes:category text="Professional"/>
</itunes:category>

1 个答案:

答案 0 :(得分:0)

您的XML存在多个错误,导致其格式不正确:

  1. 开场rss代码缺少>
  2. &中有一个未转义的Sports & Recreation
  3. 有一个无关的关闭</itunes:category>标记。