I have the following file:
<?xml version="1.0" ?>
<!DOCTYPE League SYSTEM "DL.dtd">
<League LName="Eastern Developmental League">
<Team>
<Team_Name>Tigers</Team_Name>
<City>Toledo</City>
<Logo Source="Tigers"/>
<Players>
<Player Position="Centers" PPG="21.2" RPG="11.1">Lionel Diggs</Player>
<Player Position="Forward" PPG="18.9" RPG="8.4">Andrew Case</Player>
<Player Position="Forward" PPG="14.4" RPG="5.0">Casey Lewis</Player>
<Player Position="Guard" PPG="15.4" RPG="3.1" Assists="9.4">Andrew Case</Player>
<Player Position="Guard" PPG="7.2" RPG="2.5" Assists="3.9">Ray Kee</Player>
</Players>
</Team>
<Team>
And I am trying to make the following DTD file, but im not sure how to handle the "player" portion:
<!DOCTYPE League[
<!ELEMENT League (Team+)>
<!ELEMENT Team (#PCDATA)>
<!ELEMENT Team (Team_Name, City, Logo, Players+)>
<!ELEMENT Team_Name (#PCDATA)>
<!ELEMENT City (#PCDATA)>
<!ELEMENT Logo EMPTY>
<!ELEMENT Players (Player, Position, PPG, RPG)
<!ELEMENT Player>
<!ELEMENT Position ANY>
<!ELEMENT PPG ANY>
<!ELEMENT RPG ANY>
<!ATTLIST League Team CDATA #REQUIRED>
<!ATTLIST Team Logo CDATA #REQUIRED>
<!ATTLIST Player Position (Center|Forward|Guard)>
]>
Can anyone help a new guy out a bit? I've been going through all the tutorials I can find, but am sitll having problems.
Thanks!
Marcus
<?xml version="1.0" ?>
<!DOCTYPE League SYSTEM "DL.dtd">
<League LName="Eastern Developmental League">
<Team>
<Team_Name>Tigers</Team_Name>
<City>Toledo</City>
<Logo Source="Tigers"/>
<Players>
<Player Position="Centers" PPG="21.2" RPG="11.1">Lionel Diggs</Player>
<Player Position="Forward" PPG="18.9" RPG="8.4">Andrew Case</Player>
<Player Position="Forward" PPG="14.4" RPG="5.0">Casey Lewis</Player>
<Player Position="Guard" PPG="15.4" RPG="3.1" Assists="9.4">Andrew Case</Player>
<Player Position="Guard" PPG="7.2" RPG="2.5" Assists="3.9">Ray Kee</Player>
</Players>
</Team>
<Team>
And I am trying to make the following DTD file, but im not sure how to handle the "player" portion:
<!DOCTYPE League[
<!ELEMENT League (Team+)>
<!ELEMENT Team (#PCDATA)>
<!ELEMENT Team (Team_Name, City, Logo, Players+)>
<!ELEMENT Team_Name (#PCDATA)>
<!ELEMENT City (#PCDATA)>
<!ELEMENT Logo EMPTY>
<!ELEMENT Players (Player, Position, PPG, RPG)
<!ELEMENT Player>
<!ELEMENT Position ANY>
<!ELEMENT PPG ANY>
<!ELEMENT RPG ANY>
<!ATTLIST League Team CDATA #REQUIRED>
<!ATTLIST Team Logo CDATA #REQUIRED>
<!ATTLIST Player Position (Center|Forward|Guard)>
]>
Can anyone help a new guy out a bit? I've been going through all the tutorials I can find, but am sitll having problems.
Thanks!
Marcus