XML Tutorials - Herong's Tutorial Examples - v5.25, by Herong Yang
DOCTYPE - Document Type Declaration Statement
This section describes syntax formats of the DOCTYPE statement, which is used to declare that this XML document has been linked to DTD document type with the specified root element name.
DOCTYPE is a DTD statement included in an XML file to declare that this XML document has been linked to DTD document type and to specify the name of the root element of this XML document.
Valid syntax formats for DOCTYPE statement are:
<!DOCTYPE root_element [ internal_DTD_statements ]> <!DOCTYPE root_element SYSTEM "DTD_location"> <!DOCTYPE root_element SYSTEM "DTD_location" [ internal_DTD_statements ]> <!DOCTYPE root_element PUBLIC "DTD_name" "DTD_location"> <!DOCTYPE root_element PUBLIC "DTD_name" "DTD_location" internal_DTD_statements ]>
General rules about the DOCTYPE statement:
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
►DOCTYPE - Document Type Declaration Statement
ELEMENT - Element Declaration Statement
ATTLIST - Attribute List Declaration Statement
ENTITY - Entity Declaration Statement
dictionary_dtd.xml - XML DTD Document Type Example
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