Я создал очень простой XML-файл для хранения рекордов, но validome.org говорит, что он недействителен, и я не могу понять, почему.
Вот XML-файл:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HighScoreList [
<!ELEMENT HighScoreList (Highscore*)>
<!ELEMENT HighScore (Name, Score)>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT Score (#PCDATA)>
]>
<HighScoreList>
<HighScore>
<Name>Player</Name>
<Score>1000</Score>
</HighScore>
<HighScore>
<Name>Player</Name>
<Score>900</Score>
</HighScore>
<HighScore>
<Name>Player</Name>
<Score>800</Score>
</HighScore>
<HighScore>
<Name>Player</Name>
<Score>700</Score>
</HighScore>
<HighScore>
<Name>Player</Name>
<Score>600</Score>
</HighScore>
<HighScore>
<Name>Player</Name>
<Score>500</Score>
</HighScore>
<HighScore>
<Name>Player</Name>
<Score>400</Score>
</HighScore>
<HighScore>
<Name>Player</Name>
<Score>300</Score>
</HighScore>
<HighScore>
<Name>Player</Name>
<Score>200</Score>
</HighScore>
<HighScore>
<Name>Player</Name>
<Score>100</Score>
</HighScore>
</HighScoreList>
И ошибка (в последней строке):
Содержимое элемента типа "HighScoreList" должно совпадать с "(Highscore *)".