validating my xml

wxdqz

New Member
I am doing a project and I can't make my xml validate.

for validating this is my code.

<!DOCTYPE fantasy_team
[
<!ELEMENT fantasy_team (player+) >
<!ELEMENT player (name, fg_percent, three_percent, free_throw, total_points, point_pergame, pic) >
<!ELEMENT name (#PCDATA)>
<!ELEMENT fg_percent (#PCDATA)>
<!ELEMENT three_percent (#PCDATA)>
<!ELEMENT free_throw (#PCDATA)>
<!ELEMENT total_points (#PCDATA)>
<!ELEMENT points_pergame (#PCDATA)>
<!ELEMENT pic ANY >
]>

It works fine when i take the validation out so it has to be something in there.
all of the names (fantasy_team etc) are correct. any help would be greatly appreciated
 
Back
Top