InDesign2026
API 21.5.1.73
Collection of XMLTag

XMLTags

A collection of XML tags.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

XMLTag

Returns the XMLTag with the specified index.

index Number The index.
XMLTag

Creates a tag.

name? String The name of the tag.
tagColor? 3 Reals (0 - 255)[] | UIColors[] The dolor of the tag, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as a UI color. Can accept: Array of 3 Reals (0 - 255) or UIColors enumerator.
withProperties? Object Initial values for properties of the new XMLTag
XMLTag

Returns any XMLTag in the collection.

Number

Displays the number of elements in the XMLTag.

XMLTag[]

Returns every XMLTag in the collection.

XMLTag

Returns the first XMLTag in the collection.

XMLTag

Returns the XMLTag with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
XMLTag

Returns the XMLTag with the specified ID.

id Number The ID.
XMLTag

Returns the XMLTag with the specified name.

name String The name.
XMLTag[]

Returns the XMLTags within the specified range.

from LongInteger | XMLTag | String The XMLTag, index, or name at the beginning of the range. Can accept: XMLTag, Long Integer or String.
to LongInteger | XMLTag | String The XMLTag, index, or name at the end of the range. Can accept: XMLTag, Long Integer or String.
XMLTag

Returns the last XMLTag in the collection.

XMLTag

Returns the middle XMLTag in the collection.

XMLTag

Returns the XMLTag whose index follows the specified XMLTag in the collection.

obj XMLTag The XMLTag whose index comes before the desired XMLTag.
XMLTag

Returns the XMLTag with the index previous to the specified index.

obj XMLTag The index of the XMLTag that follows the desired XMLTag.
String

Generates a string which, if executed, will return the XMLTag.

Object of 2

Properties elsewhere that hold a XMLTags.