8.6 Assignment #5: Entities

due: Wednesday, Nov 5

Create a DTD for the given XML document, and provide a SAX program that validates the XML file against the DTD.

<?xml version="1.0" encoding="UTF-8"?>  
<!DOCTYPE chess SYSTEM "chess.dtd" >  
<chess>  &King;    &Queen;  
         &Rook;    &Bishop;  
         &Knight;  &Pawn;  
</chess>