# Titanium.XML.DocumentType
Each Titanium.XML.Document has a doctype
attribute whose value is either 'null' or a Titanium.XML.DocumentType object.
# Overview
This provides an interface to the list of entities that are defined for the document. Implements the DOM Level 2 API (opens new window) on Android and iOS.
As of version 3.1, Android still does not truly support DTDs. A document with a DTD can be parsed, however it is not validated, none of its default attributes will automatically be put into the tree, etc. Google is aware of the issue (opens new window).
# Properties
# entities READONLY
A Titanium.XML.NamedNodeMap containing the general entities, both external and internal, declared in the DTD. Parameter entities are not contained. Duplicates are discarded.
# name READONLY
The name of DTD; i.e., the name immediately following the DOCTYPE
keyword.
# notations READONLY
A Titanium.XML.NamedNodeMap containing the notations declared in the DTD. Duplicates are discarded. Every node in this map also implements the Titanium.XML.Notation interface.