InDesign2026
API 21.5.1.73
Collection of XMLItem

XMLItems

A collection of XML items.

Properties

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

Methods

XMLItem

Returns the XMLItem with the specified index.

index Number The index.
XMLItem

Returns any XMLItem in the collection.

Number

Displays the number of elements in the XMLItem.

XMLItem[]

Returns every XMLItem in the collection.

XMLItem

Returns the first XMLItem in the collection.

XMLItem

Returns the XMLItem with the specified index or name.

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

Returns the XMLItem with the specified ID.

id Number The ID.
XMLItem[]

Returns the XMLItems within the specified range.

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

Returns the last XMLItem in the collection.

XMLItem

Returns the middle XMLItem in the collection.

XMLItem

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

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

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

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

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

Object of 2

Properties elsewhere that hold a XMLItems.