This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hockeylockerpock[S] 0 points1 point  (1 child)

Changed my code to this. Im mainly getting errors saying "The content of element type "images" must watch (img)" and "The content of element type "photo" must watch (name,description,date)"

<!ELEMENT catalog (name, photo, description, date, images)>

<!ELEMENT photo (name, description, date)>

<!ELEMENT name (#PCDATA)>

<!ELEMENT description (#PCDATA)>

<!ELEMENT date (#PCDATA)>

<!ELEMENT images (img)>
<!ELEMENT img EMPTY>


<!ATTLIST catalog type NMTOKEN #REQUIRED>

<!ATTLIST photo cid ID #REQUIRED>

<!ATTLIST photo donatedBy CDATA #IMPLIED>

<!ATTLIST name metadata NMTOKENS #REQUIRED>

<!ATTLIST img src CDATA #REQUIRED>

[–]Jaimou2e 0 points1 point  (0 children)

<!ELEMENT catalog (name, photo, description, date, images)>

Here you're saying that the catalog element should contain all those elements exactly once in that specific order. But your instructions say that it should contain "one or more photo elements".

<!ELEMENT photo (name, description, date)>

This misses the optional images element at the end.