# Titanium.XML.DocumentType

Each Titanium.XML.Document has a doctype attribute whose value is either 'null' or a Titanium.XML.DocumentType object.

Availability
0.9
0.9
9.2.0

# 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

Availability
0.9
0.9
9.2.0

A Titanium.XML.NamedNodeMap containing the general entities, both external and internal, declared in the DTD. Parameter entities are not contained. Duplicates are discarded.


# internalSubset READONLY

Availability
0.9
0.9
9.2.0
internalSubset :String

The internal subset as a string.


# name READONLY

Availability
0.9
0.9
9.2.0
name :String

The name of DTD; i.e., the name immediately following the DOCTYPE keyword.


# notations READONLY

Availability
0.9
0.9
9.2.0

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.


# publicId READONLY

Availability
0.9
0.9
9.2.0
publicId :String

The public identifier of the external subset.


# systemId READONLY

Availability
0.9
0.9
9.2.0
systemId :String

The system identifier of the external subset.