I
created the DTD-file film.dtd with the following content:
<!ELEMENT film (title, person+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT person EMPTY>
<!ATTLIST person
name CDATA #REQUIRED
role (actor | photographer | director | author | administrator)
#IMPLIED
>
I
created the XML-file film.xml with the following content:
<?xml version="1.0" ?>
<!DOCTYPE film SYSTEM "film.dtd">
<film>
<title>
The Postman Always Rings Twice</title>
<person name="Lana Turner" role="actor"/>
<person name="John Garfield" role="actor"/>
<person name="Tay Garnet" role="director"/>
<person name="James M. Cain" role="author"/>
</film>