Fixed validation examples so that the DTDs are themselves valid.
Added filename, line and message information to validation exceptions.
Made the error messages more informative.
1<?xml version="1.0"?> 2<!DOCTYPE zoo [ 3 <!ELEMENT zoo (cage*)> 4<!ELEMENT cage (#PCDATA)> 5<!ATTLIST cage 6 id ID #IMPLIED 7 > 8 ]> 9<zoo> 10<cageid="rabbits">Also shows off getElementById which needs the DTD.</cage> 11</zoo>