Hey guys i've got a XML DTD code that is external but when i try and validate it, i seem to get an error. The code i have is below:
<!DOCTYPE catalog [
<!ELEMENT catalog (book)+>
<!ELEMENT book (title, authors, year_published, ISBN, number_of_pages, price) >
<!ELEMENT title (#PCDATA)>
<!ELEMENT authors (author)>
<!ELEMENT author (first_name, last_name, gender)>
<!ELEMENT first_name (#PCDATA)>
<!ELEMENT last_name (#PCDATA)>
<!ELEMENT gender (#PCDATA)>
<!ELEMENT year_pusblished (#PCDATA)>
<!ELEMENT ISBN (#PCDATA)>
<!ELEMENT number_of_pages (#PCDATA)>
<!ELEMENT price (discount)>
<!ATTLIST price discount (yes|no) "no">]>
I know everything is correct but when i validate it the error message comes up:
"Markup declarations contained in or pointed to by document type declaration must be well-formed. Line 3 Column 4"
i've checked everything but i can't seem to get it working. Are you guys able to help?