XMLAttributes

A collection of XML attributes.

Methods:

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

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

XMLAttribute [] (index:Number)

Returns the XMLAttribute with the specified index.

Parameter

Type

Description

index

Number

The index.

XMLAttribute add (name:String, value:String, withProperties:Object)

Creates a new XML attribute.

Parameter

Type

Description

name

String

The name of the attribute.

value

String

The value of the attribute.

withProperties

Object

Initial values for properties of the new XMLAttribute (Optional)

XMLAttribute anyItem ()

Returns any XMLAttribute in the collection.

Number count ()

Displays the number of elements in the XMLAttribute.

XMLAttribute everyItem ()

Returns every XMLAttribute in the collection.

XMLAttribute firstItem ()

Returns the first XMLAttribute in the collection.

XMLAttribute item (index:Varies LongInteger String)

Returns the XMLAttribute with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

XMLAttribute itemByName (name:String)

Returns the XMLAttribute with the specified name.

Parameter

Type

Description

name

String

The name.

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

Returns the XMLAttributes within the specified range.

Parameter

Type

Description

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

Returns the last XMLAttribute in the collection.

XMLAttribute middleItem ()

Returns the middle XMLAttribute in the collection.

XMLAttribute nextItem (obj:XMLAttribute)

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

Parameter

Type

Description

obj

XMLAttribute

The XMLAttribute whose index comes before the desired XMLAttribute.

XMLAttribute previousItem (obj:XMLAttribute)

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

Parameter

Type

Description

obj

XMLAttribute

The index of the XMLAttribute that follows the desired XMLAttribute.

String toSource ()

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

Object of

XMLElement.xmlAttributes