Titanium.XML.DocumentType

Object of Titanium.XML.
Platform Since
Android 0.9
iPhone 0.9
iPad 0.9

Summary

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

Description

This provides an interface to the list of entities that are defined for the document. This conforms to the DOM Level 2 defintion of a DOM DocumentType.

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.

Methods

Name Summary
addEventListener

Adds the specified callback as an event listener for the named event.

appendChild

Appends the node newChild as a child of this node

cloneNode

Returns a duplicate of this node

fireEvent

Fires a synthesized event to any registered listeners.

getAttributes

Gets the value of the attributes property.

getChildNodes

Gets the value of the childNodes property.

getEntities

Gets the value of the entities property.

getFirstChild

Gets the value of the firstChild property.

getInternalSubset

Gets the value of the internalSubset property.

getLastChild

Gets the value of the lastChild property.

getLocalName

Gets the value of the localName property.

getName

Gets the value of the name property.

getNamespaceURI

Gets the value of the namespaceURI property.

getNextSibling

Gets the value of the nextSibling property.

getNodeName

Gets the value of the nodeName property.

getNodeType

Gets the value of the nodeType property.

getNodeValue

Gets the value of the nodeValue property.

getNotations

Gets the value of the notations property.

getOwnerDocument

Gets the value of the ownerDocument property.

getParentNode

Gets the value of the parentNode property.

getPrefix

Gets the value of the prefix property.

getPreviousSibling

Gets the value of the previousSibling property.

getPublicId

Gets the value of the publicId property.

getSystemId

Gets the value of the systemId property.

hasAttributes

Whether or not this node has attributes

hasChildNodes

Whether or not this node has child nodes

insertBefore
isSupported

Tests whether the DOM implementation supports a specific feature

normalize

Normalizes text and attribute nodes in this node's child hierarchy

removeChild

Removes a child node from this node

removeEventListener

Removes the specified callback as an event listener for the named event.

replaceChild

Replaces the node oldChild with the node newChild

setLocalName

Sets the value of the localName property.

Properties

Name Type Summary
ATTRIBUTE_NODE Number

The value of when this node is a Titanium.XML.Attr read-only

CDATA_SECTION_NODE Number

The value of when this node is a CData section (a type of Titanium.XML.Text) read-only

COMMENT_NODE Number

The value of when this node is a Titanium.XML.Comment read-only

DOCUMENT_FRAGMENT_NODE Number

The value of when this node is a Titanium.XML.DocumentFragment read-only

DOCUMENT_NODE Number

The value of when this node is a Titanium.XML.Document read-only

DOCUMENT_TYPE_NODE Number

The value of when this node is a Titanium.XML.DocumentType read-only

ELEMENT_NODE Number

The value of when this node is a Titanium.XML.Element read-only

ENTITY_NODE Number

The value of when this node is a Titanium.XML.Entity read-only

ENTITY_REFERENCE_NODE Number

The value of when this node is an Entity reference (a type of Titanium.XML.Node) read-only

NOTATION_NODE Number

The value of when this node is a Titanium.XML.Notation read-only

PROCESSING_INSTRUCTION_NODE Number

The value of when this node is a Titanium.XML.ProcessingInstruction read-only

TEXT_NODE Number

The value of when this node is a Titanium.XML.Text read-only

attributes Titanium.XML.NamedNodeMap

A map of this node's attributes read-only

childNodes Titanium.XML.NodeList

A Titanium.XML.NodeList of this node's children read-only

entities Titanium.XML.NamedNodeMap

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

firstChild Titanium.XML.Node

This node's first child read-only

internalSubset String

The internal subset as a string. read-only

lastChild Titanium.XML.Node

This node's last child read-only

localName String

The local part of the qualified name of this node

name String

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

namespaceURI String

The namespace URI of this node read-only

nextSibling Titanium.XML.Node

This node's next sibling read-only

nodeName String

The name of this node read-only

nodeType Number

This node's type. One of , , , , , , , , , , , read-only

nodeValue String

The content (value) of this node read-only

notations Titanium.XML.NamedNodeMap

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. read-only

ownerDocument Titanium.XML.Document

This node's owning Document read-only

parentNode Titanium.XML.Node

This node's parent node read-only

prefix String

The namespace prefix of this node read-only

previousSibling Titanium.XML.Node

This node's previous sibling read-only

publicId String

The public identifier of the external subset. read-only

systemId String

The system identifier of the external subset. read-only

Events

This type has no events.