1<?xml version="1.0"?> 2 3<!DOCTYPE foo [ 4 5<!ELEMENT foo (bar)> 6<!ATTLIST foo id CDATA #IMPLIED> 7<!ELEMENT bar (#PCDATA|cheese)*> 8<!ATTLIST bar id ID #REQUIRED> 9<!ELEMENT cheese (#PCDATA)> 10<!ATTLIST cheese kind ID #IMPLIED> 11]> 12 13<foo id="foobar"> 14 <bar id="fb1"> 15 baz 16 <cheese kind="edam">gouda</cheese> 17 baz 18 <cheese kind="gouda">cheddar</cheese> 19 baz 20 </bar> 21</foo> 22