1
數據庫A包含每個城市及其體育場的足球俱樂部和板球俱樂部列表。我爲給定的本體寫了一個模糊的XML結構。但是結構中有錯誤。我無法找到XML中的錯誤。有人能指出這個錯誤嗎?來自本體的XML結構
<?xml version='1.0'?>
<City>
<Name>London</Name>
<Football_clubs>
<club_details>
<name>Chelsea FC</name>
<stadium>Stamford Bridge</stadium>
</club_details>
<club_details>
<name>Fulham</name>
<stadium>Craven Cottage</stadium>
</club_details>
<club_details>
<name>Spurs</name>
<stadium>WHL</stadium>
</club_details>
</Football_clubs>
<Cricket_Clubs>
<club_details>
<name>Yorkshire</name>
<stadium>XYZ</stadium>
</club_details>
<club_details>
<name>Leicetshire</name>
<stadium>ABC</stadium>
</club_details>
<club_details>
<name>Surrey</name>
<stadium>GHI</stadium>
</club_details>
</Cricket_Clubs>
</City>
<City>
<Name>Manchester</Name>
<Football_clubs>
<club_details>
<name>Manchester Utd</name>
<stadium>Old Trafford</stadium>
</club_details>
<club_details>
<name>Manchester City</name>
<stadium>Maine Road</stadium>
</club_details>
<club_details>
<name>Bolton</name>
<stadium>SDF</stadium>
</club_details>
</Football_clubs>
<Cricket_Clubs>
<club_details>
<name>Yorkshire</name>
<stadium>XYZ</stadium>
</club_details>
<club_details>
<name>Leicetshire</name>
<stadium>ABC</stadium>
</club_details>
<club_details>
<name>Surrey</name>
<stadium>GHI</stadium>
</club_details>
</Cricket_Clubs>
</City>
你是不是缺少根元素? XML文檔中必須只有一個,我只能看到多個「城市」標籤,沒有任何內容。 – toniedzwiedz
非常感謝... – user1429322