XML Tutorials - Herong's Tutorial Examples - v5.25, by Herong Yang
Validating an XML File against a DTD Document Type
This section describes different ways to validate XML files against DTD document types: using standalone XML validation tools, using on-line XML validators, and writing your own XML validation programs.
So far we learned how to use DTD statements to define a document type for an XML file. We also learned how to specify a document type defined by DTD statements to an XML file.
Now let's see how we can validate an XML file against the specified document type. In general, Web browsers like IE and Firefox can be used to browse XML files. But they can not be used to validate XML files. So we have to look for other ways to perform XML DTD validation:
1. Using XML DTD validation tools:
2. Using XML DTD on-line validators:
3. Write your own XML validators with XML DTD validation API:
Table of Contents
Introduction of XML (eXtensible Markup Language)
DOM (Document Object Model) Programming Interface
SAX (Simple API for XML) Programming Interface
►DTD (Document Type Definition) Introduction
What Is DTD (Document Type Definition)
XML Files with Embedded DTD Statements
XML Files with Linked External DTD Files
►Validating an XML File against a DTD Document Type
Validating an XML Document against the Specified DTD Document Type
XSD (XML Schema Definition) Introduction
Validating XML Documents Against Specified XML Schemas
XSL (Extensible Stylesheet Language) Introduction
XSLT (XSL Transformations) Introduction
XSLT Elements as Programming Statements
Control and Generate XML Element in the Result
PHP Extensions for XML Manipulation
Processing XML with Python Scripts
XML Tools Plugin for Notepad++
XML Plugin Packages for Atom Editor