XMLItems

A collection of XML items.

Methods:

[], anyItem, count, everyItem, firstItem, item, itemByID, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

XMLItem [] (index:Number)

Returns the XMLItem with the specified index.

Parameter

Type

Description

index

Number

The index.

XMLItem anyItem ()

Returns any XMLItem in the collection.

Number count ()

Displays the number of elements in the XMLItem.

XMLItem everyItem ()

Returns every XMLItem in the collection.

XMLItem firstItem ()

Returns the first XMLItem in the collection.

XMLItem item (index:Varies LongInteger String)

Returns the XMLItem with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

XMLItem itemByID (id:Number)

Returns the XMLItem with the specified ID.

Parameter

Type

Description

id

Number

The ID.

XMLItem itemByRange (from:Varies LongInteger XMLItem String, to:Varies LongInteger XMLItem String)

Returns the XMLItems within the specified range.

Parameter

Type

Description

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 lastItem ()

Returns the last XMLItem in the collection.

XMLItem middleItem ()

Returns the middle XMLItem in the collection.

XMLItem nextItem (obj:XMLItem)

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

Parameter

Type

Description

obj

XMLItem

The XMLItem whose index comes before the desired XMLItem.

XMLItem previousItem (obj:XMLItem)

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

Parameter

Type

Description

obj

XMLItem

The index of the XMLItem that follows the desired XMLItem.

String toSource ()

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

Object of

Document.xmlItems

XMLElement.xmlItems