Edit in GitHubLog an issue

XMLItems

A collection of XML items.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the XMLItem.


XMLItem item( Mixed index )

Returns the XMLItem with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

XMLItem itemByID( Number id )

Returns the XMLItem with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

XMLItem itemByRange( Mixed from, Mixed to )

Returns the XMLItems within the specified range.

Parameters

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

XMLItem firstItem()

Returns the first XMLItem in the collection.


XMLItem lastItem()

Returns the last XMLItem in the collection.


XMLItem middleItem()

Returns the middle XMLItem in the collection.


XMLItem previousItem( XMLItem obj )

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

Parameters

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

XMLItem nextItem( XMLItem obj )

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

Parameters

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

XMLItem anyItem()

Returns any XMLItem in the collection.


XMLItem everyItem()

Returns every XMLItem in the collection.


String toSource()

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


XMLItem []( Number index )

Returns the XMLItem with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.