Posted on April 23, 2010.
I need help pleaseee XML? Hello, in my mission, I have an external DTD and I need the correct syntax for some of my XML file that looks like this:
<Players>
> Position = "Centers" <Player PPG="21.2" Lionel RPG="11.1"> Diggs <Player /
> Position = "Forward" <Player PPG="18.9" RPG="8.4"> <Case Andrew Player /
Position = "Forward" <Player PPG="14.4" RPG="5.0"> Casey Lewis <> Player /
> Position = "Guard" <Player PPG="15.4" RPG="3.1" Assists="9.4"> <Case Andrew Player /
> Position = "Guard" <Player PPG="7.2" RPG="2.5" Assists="3.9"> <Kee Ray Player /
</> Players
My DTD syntax is as follows:
<! ELEMENT Players (Player +)>
<! Player ELEMENT (# PCDATA)>
<! ATTLIST player's position (center | Forward | Guard) CDATA # REQUIRED>
<! ATTLIST CDATA # IMPLIED PPG Player>
<! ATTLIST CDATA # IMPLIED Player RPG>
<! ATTLIST CDATA # IMPLIED Player Help>
but it keeps telling me
Open quote is expected for attribute "position" associated with an element type "Player".
Can someone help me??
You have an error in a couple:
1. The first player who has a position of "centers" that is not one of the valid positions that you specify in the DTD. s Try to remove ".
2. In the position ATTLIST delete CDATA.
3. In ATTLIST position you misspelled heading.