2011-07-13 36 views
0

上有誰知道爲什麼我會得到這個http://briannechavis.com/mp3Player.xmlXML格式不正確的錯誤服務器

我在一個失去了作爲發生了什麼.. xml文件加載罰款本地,但不會當我上傳加載到服務器...然後當我直接去上面的鏈接,我看你會看到什麼,當你點擊它...

繼承人什麼XML文件包含

<music autoPlay="true" autoNextSong="true"> 
<song> 
    <title><![CDATA[On The Floor feat. Pitbull - JLo]]></title> 
    <mp3File><![CDATA[music/1.mp3]]></mp3File> 
</song> 
<song> 
    <title><![CDATA[Suéltate - Tito El Bambino - El Patrón]]></title> 
    <mp3File><![CDATA[music/2.mp3]]></mp3File> 
</song> 
<song> 
    <title><![CDATA[Judas - Lady Gaga]]></title> 
    <mp3File><![CDATA[music/3.mp3]]></mp3File> 
</song> 
    <song> 
    <title><![CDATA[Dont Turn Back - Colby Odonis]]></title> 
    <mp3File><![CDATA[music/4.mp3]]></mp3File> 
</song> 
<song> 
    <title><![CDATA[Whats My Name feat Drake - Rihanna]]></title> 
    <mp3File><![CDATA[music/5.mp3]]></mp3File> 
</song> 
<song> 
    <title><![CDATA[Goapele - Closer]]></title> 
    <mp3File><![CDATA[music/6.mp3]]></mp3File> 
</song> 

+0

這是一個類似的文件,並談到了罰款:/難道是服務器? http://0.s3.envato.com/files/42671/mp3Player.xml – Misty

+0

我試着複製並粘貼這個文本到一個記事本文件中,並且使用這些重音符的這些字符正在以中文相信。刪除這些字符可以嗎?只是試圖縮小一些。 – shaunhusain

+0

行已解決!部分編輯我使用..我複製粘貼在記事本中,並立即指出錯誤.. :)感謝所有幫助。 – Misty

回答

0

鏈接到的類似XML文件具有ISO-8859編碼。

<?xml version="1.0" encoding="ISO-8859-1"?> 

你也許應該使用UTF-8,特別是如果你打算使用任何時髦的字符:

<?xml version="1.0" encoding="utf-8"?> 
相關問題