2016-09-21 19 views
1

我遇到了另一個與我的XML錯誤。當我嘗試編譯我的XML,我得到的錯誤線路7列上的XML錯誤:EntityRef:期待';'

誤差在塔64:的EntityRef:期待「;」」

我確實有它包括在內,但由於某種原因,它使。我看這個

這裏是我的代碼:

<local_weather> 
    <local_counties> 
     <county id="1"> 
      <name> Suffolk </name> 
      <title> Current Weather Listed </title> 
      <location> 
       api.openweathermap.org/data/2.5/weather?q=Ipswich,uk&APPID=6ce0e1da2bbce97fe9e735c3a2009c71; 
      </location> 
      <name> Norfolk </name> 
      <title> Current Weather Listed </title> 
      <location> 
       api.openweathermap.org/data/2.5/weather?q=Norwich,uk&APPID=da4be448d33cb1b0d8b5bdaa4daca4f7; 
      </location> 
      <name> Essex </name> 
      <title> Current Weather Listed </title> 
      <location> 
       api.openweathermap.org/data/2.5/weather?q=Chelmsford,uk&APPID&APPID=9fa167ffbd810a6cdbf0fe73597d92fe; 
      </location> 
      <name> Cambridgeshire </name> 
      <title> Current Weather Listed </title> 
      <location> 
       api.openweathermap.org/data/2.5/weather?q=Peterborough,uk&APPID&APPID=2dcefd34930d723d95c0c3d910f90c3d; 
      </location> 
     </county> 
    </local_counties> 
</local_weather> 
+0

是的,那是我:/對不起。 – Sam

回答

0

您必須與&amp;更換&爲XML是良好的印版d。

(這是校正#3在answer you acceptedprevious question about this XML。爲什麼不使用張貼在這個問題的答案完全修正XML?)

+0

我剛剛嘗試過,但由於某些原因,我仍然收到相同的錯誤。 – Sam

+0

你有沒有***'&'字符的所有***?我建議你複製並粘貼[我更早的答案中的糾正的XML](http://stackoverflow.com/a/39620951/290085),所以你一定不要錯過任何我在那裏做的更正。 – kjhughes

+0

我剛剛複製了您在其他問題上粘貼的內容,但仍然收到相同的錯誤。 – Sam

0

您不能在XML &。它必須逃脫。用你的xml替換你的&&amp;並嘗試。

相關問題