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 [

<!DOCTYPE root_element SYSTEM "DTD_location">

<!DOCTYPE root_element SYSTEM "DTD_location" [

<!DOCTYPE root_element PUBLIC "DTD_name" "DTD_location">

<!DOCTYPE root_element PUBLIC "DTD_name" "DTD_location"

General rules about the DOCTYPE statement:

Table of Contents

 About This Book

 Introduction of XML (eXtensible Markup Language)

 XML File Syntax

 XML File Browsers

 XML-JSON Document Conversion

 DOM (Document Object Model) Programming Interface

 SAX (Simple API for XML) Programming Interface

 DTD (Document Type Definition) Introduction

Syntaxes of DTD Statements

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

 Syntaxes of XSD Statements

 Validating XML Documents Against Specified XML Schemas

 XSL (Extensible Stylesheet Language) Introduction

 Java Implementation of XSLT

 XSLT (XSL Transformations) Introduction

 XPath (XML Path) Language

 XSLT Elements as Programming Statements

 Control and Generate XML Element in the Result

 PHP Extensions for XML Manipulation

 Processing XML with Python Scripts

 XML Notepad - XML Editor

 XML Tools Plugin for Notepad++

 XML Plugin Packages for Atom Editor

 XML 1.1 Changes and Parsing Examples

 Archived Tutorials


 Full Version in PDF/EPUB