2015-04-28 62 views
0

我試圖將其上傳到iTunes,但我一直收到相同的錯誤。在這一點上,我甚至沒有任何&的內容,當我通過W3school的驗證器運行時,它說所有內容都很好。任何幫助是極大的讚賞無效的XML:錯誤在線。實體名稱必須立即跟在實體參考中的'&'

<?xml version="1.0" encoding="UTF-8"?> 

<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> 

<channel> 
<title>The Regulars</title> 
<link>http://theregularspodcast.tumblr.com/</link> 
<language>en-us</language> 
<copyright>The Regulars, 2015</copyright> 
<itunes:subtitle>EP1 Paying for butts and RIP Konami</itunes:subtitle> 
<itunes:author>The Regulars</itunes:author> 
<itunes:summary>Christopher and Matthew talk about mostly video game news. Sometimes we talk about other stuff too.</itunes:summary> 
<description>WHAT IS GOING ON AT KONAMI, WHY DOES A HORSE BUTT COST £60</description> 
<itunes:owner> 
<itunes:name>The Regulars</itunes:name> 
<itunes:email>[email protected]</itunes:email> 
</itunes:owner> 
<itunes:image href="https://dl.dropboxusercontent.com/u/56667917/logo.png" /> 
<itunes:category text="Games and Hobbies"> 
<itunes:category text="Video Games"/> 
</itunes:category> 

<item> 
<title>EP1 Paying for butts and RIP Konami?</title> 
<itunes:author>Matthew Starkey</itunes:author> 
<itunes:subtitle>Episode 1</itunes:subtitle> 
<itunes:summary>Chris and Matthew talk about the recent paid mods feature on steam, what is going on with Konami and other related topics</itunes:summary> 
<enclosure url="https://dl.dropboxusercontent.com/u/56667917/The%20Regulars%20-%20EP%201%20-%20Paying%20for%20Anuses%20and%20RIP%20Konami.mp3" length="122341985" type="audio/mpeg" /> 
<guid>https://dl.dropboxusercontent.com/u/56667917/The%20Regulars%20-%20EP%201%20-%20Paying%20for%20Anuses%20and%20RIP%20Konami.mp3</guid> 
<pubDate>Wed, 29 April 2015</pubDate> 
<itunes:duration>1:03:43</itunes:duration> 
<itunes:keywords>video games aoncefreeman forgivenpast the regulars skyrim valve steam konami hideo kojima metal gear solid silent hills paid mods</itunes:keywords> 
<itunes:explicit>yes</itunes:explicit> 
</item> 


</channel> 
</rss> 
+0

該文檔中沒有'&'。如果您完全按照所示上傳文檔,則應用程序輸出此錯誤時出錯。 –

+0

看看(在這樣一個其他問題中,只搜索「* [xml]實體名稱必須立即跟隨*」在SO上):https://stackoverflow.com/questions/20230551/getting-a-該實體名稱,必須-立即跟隨最在最實體和借鑑 – potame

回答

1

按照official iTunes podcast specs,類別遊戲&愛好必須包含符號的RSS feed中的HTML實體等同。 在您的具體情況中,使用「and」而不是「&」符號與任何現有的iTunes類別(因此,iTunes中的錯誤)都不對應。簡單地將其替換爲:

Games &amp; Hobbies 

此外,考慮到視頻遊戲遊戲&愛好的子類,所以在播客RSS飼料的iTunes分類標籤的正確sintax是:

<itunes:category text="Games &amp; Hobbies"> 
<itunes:category text="Video Games" /> 
</itunes:category> 
相關問題