DTD

The document DTD.

Methods:

duplicate, move, remove, select

Objects:

Number, Object, SpecialCharacters, String, XMLTag

Hierarchy:

Superclass: XMLItem

Class: DTD

Property Listing

Property

Type

Access

Description

contents

String

SpecialCharacters

SpecialCharacters.AUTO_PAGE_NUMBER

SpecialCharacters.BULLET_CHARACTER

SpecialCharacters.COLUMN_BREAK

SpecialCharacters.COPYRIGHT_SYMBOL

SpecialCharacters.DEGREE_SYMBOL

SpecialCharacters.DISCRETIONARY_HYPHEN

SpecialCharacters.DOUBLE_LEFT_QUOTE

SpecialCharacters.DOUBLE_RIGHT_QUOTE

SpecialCharacters.ELLIPSIS_CHARACTER

SpecialCharacters.EM_DASH

SpecialCharacters.EM_SPACE

SpecialCharacters.END_NESTED_STYLE

SpecialCharacters.EN_DASH

SpecialCharacters.EN_SPACE

SpecialCharacters.EVEN_PAGE_BREAK

SpecialCharacters.FIGURE_SPACE

SpecialCharacters.FLUSH_SPACE

SpecialCharacters.FORCED_LINE_BREAK

SpecialCharacters.FRAME_BREAK

SpecialCharacters.HAIR_SPACE

SpecialCharacters.INDENT_HERE_TAB

SpecialCharacters.NEXT_PAGE_NUMBER

SpecialCharacters.NONBREAKING_HYPHEN

SpecialCharacters.NONBREAKING_SPACE

SpecialCharacters.ODD_PAGE_BREAK

SpecialCharacters.PAGE_BREAK

SpecialCharacters.PARAGRAPH_SYMBOL

SpecialCharacters.PREVIOUS_PAGE_NUMBER

SpecialCharacters.PUNCTUATION_SPACE

SpecialCharacters.REGISTERED_TRADEMARK

SpecialCharacters.RIGHT_INDENT_TAB

SpecialCharacters.SECTION_MARKER

SpecialCharacters.SECTION_SYMBOL

SpecialCharacters.SINGLE_LEFT_QUOTE

SpecialCharacters.SINGLE_RIGHT_QUOTE

SpecialCharacters.THIN_SPACE

SpecialCharacters.TRADEMARK_SYMBOL

readonly

The contents of the text. Can return: String or SpecialCharacters enumerator.

id

Number

readonly

The unique ID of the DTD.

index

Number

readonly

The index of the DTD within its containing object.

parent

XMLElement

Document

XMLItem

readonly

The parent of the DTD (a Document, XMLElement or XMLItem).

properties

Object

read/write

A property that allows setting of several properties at the same time.

publicId

String

readonly

The public ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset.

rootTag

XMLTag

read/write

The tag of the root object.

systemId

String

readonly

The system ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset.

Method Listing

DTD duplicate ()

Duplicates the DTD.

XMLElement move (to:LocationOptions, reference:Varies XMLItem Text)

Move element before/after another element or text object, or to beginning/end

Parameter

Type

Description

to

LocationOptions

LocationOptions.AFTER

LocationOptions.AT_BEGINNING

LocationOptions.AT_END

LocationOptions.BEFORE

LocationOptions.UNKNOWN

Location

reference

XMLItem

Text

Before/after this object. Can accept: XMLItem or Text. (Optional)

undefined remove ()

Deletes the DTD.

undefined select ([existingSelection:SelectionOptions=SelectionOptions])

Select this object.

Parameter

Type

Description

existingSelection

SelectionOptions

SelectionOptions.ADD_TO

SelectionOptions.REMOVE_FROM

SelectionOptions.REPLACE

How to handle the existing selection (Optional)

(default: SelectionOptions.REPLACE)

Return

DTD.duplicate()