example.dtd JavaWorld JavaBeans December 1999
001 <!-- This is the example DTD for the example XML -->
002 <!ELEMENT Recipe (Name, Description?, Ingredients?, Instructions?)>
003 <!ELEMENT Name (#PCDATA)>
004 <!ELEMENT Description (#PCDATA)>
005 <!ELEMENT Ingredients (Ingredient)*>
006 <!ELEMENT Ingredient (Qty, Item)>
007 <!ELEMENT Qty (#PCDATA)>
008 <!ATTLIST Qty unit CDATA #REQUIRED>
009 <!ELEMENT Item (#PCDATA)>
010 <!ATTLIST Item optional CDATA "0"
011 	       isVegetarian CDATA "true">
012 <!ELEMENT Instructions (Step)+>