InDesign2026
API 21.5.1.73
Collection of XMLAttribute

XMLAttributes

A collection of XML attributes.

Properties

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

Methods

XMLAttribute

Returns the XMLAttribute with the specified index.

index Number The index.
XMLAttribute

Creates a new XML attribute.

name String The name of the attribute.
value String The value of the attribute.
withProperties? Object Initial values for properties of the new XMLAttribute
XMLAttribute

Returns any XMLAttribute in the collection.

Number

Displays the number of elements in the XMLAttribute.

XMLAttribute[]

Returns every XMLAttribute in the collection.

XMLAttribute

Returns the first XMLAttribute in the collection.

XMLAttribute

Returns the XMLAttribute with the specified index or name.

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

Returns the XMLAttribute with the specified name.

name String The name.
XMLAttribute[]

Returns the XMLAttributes within the specified range.

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

Returns the last XMLAttribute in the collection.

XMLAttribute

Returns the middle XMLAttribute in the collection.

XMLAttribute

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

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

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

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

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

Object of 1

Properties elsewhere that hold a XMLAttributes.