JavaWorld SAX Tutorial March 2000
001 <?xml version="1.0"?>
002 
003 <!DOCTYPE Recipe SYSTEM "example.dtd">
004 
005 <!-- This document has some errors that a validating parser will catch -->
006 
007 <Recipe>
008    <Name>Lime Jello Marshmallow Cottage Cheese Surprise</Name>
009    <Description>My grandma's favorite (may she rest in peace.)</Description>
010    <Ingredients>
011       <Ingredient vegetarian="false">
012          <Qty unit="box">1</Qty>
013          <Item>lime gelatin</Item>
014       </Ingredient>
015       <Ingredient vegetarian="false">
016          <Qty unit="g">500</Qty>
017          <Item>multicolored tiny marshmallows</Item>
018       </Ingredient>
019       <Ingredient vegetarian="false">
020          <Qty unit="ml">500</Qty>
021          <Item>Cottage cheese</Item>
022       </Ingredient>
023       <Ingredient>
024          <Qty unit="dash"/>
025          <Item optional="true">Tabasco sauce</Item>
026       </Ingredient>
027       <Ingredient>
028          <Item>Horseradish to taste</Item>
029       </Ingredient>
030    </Ingredients>
031    <Instructions>
032       <Step>
033 Prepare lime gelatin according to package instructions.
034       </Step>
035       <Step>
036 Come to your senses.
037       </Step>
038       <Step>
039 Discard all ingredients.
040       </Step>
041       <Step>
042 Go to Ben & Jerry's.
043       </Step>
044    </Instructions>
045 </Recipe>