Example 13 << >> | intro contents |
DTD | HOME |
<!ELEMENT XXX (AAA+, BBB+)> <!ELEMENT AAA (#PCDATA)> <!ELEMENT BBB (#PCDATA)> <!ATTLIST AAA true ( yes | no ) #REQUIRED> <!ATTLIST BBB month (1|2|3|4|5|6|7|8|9|10|11|12) #IMPLIED> |
Valid documents | HOME |
<!DOCTYPE tutorial SYSTEM "tutorial.dtd"> <XXX> <AAA true="yes"/> <AAA true="no"/> <AAA true="yes"/> <BBB month="8" /> <BBB month="2" /> <BBB month="12" /> </XXX> |
Documents with errors | HOME |
<!DOCTYPE tutorial SYSTEM "tutorial.dtd"> <XXX> <AAA true="yes"/> <AAA true="no"/> <AAA true="maybe"/> <BBB month="8" /> <BBB month="2" /> <BBB month="16" /> </XXX> |