DTD (Document Type Definition) - XML Validation
<< JDK (Java Development Kit) Tutorials
This chapter provides tutorial notes and example codes on DTD (Document Type Definition). Topics include writing an XML DTD validator using DOM and SAP interfaces; overriding error handler methods to print validation errors.
DOMValidator.java - XML DTD Validation with DOM Testing DOM XML DTD Validator SAXValidator.java - XML DTD Validation with SAX
DOMValidator.java - XML DTD Validation with DOM
Testing DOM XML DTD Validator
SAXValidator.java - XML DTD Validation with SAX
Conclusion:
Notes and sample codes bellow are based on JDK/J2SDK 1.4.1_01.
Read my other book "Tutorial Notes on XML" on other XML related topics.