A collection of XML attributes.
Methods
XMLAttributeadd (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) |
XMLAttributeanyItem ()
Returns any XMLAttribute in the collection.
number count ()
Displays the number of elements in the XMLAttribute.
Array of XMLAttributeeveryItem ()
Returns every XMLAttribute in the collection.
XMLAttributefirstItem ()
Returns the first XMLAttribute in the collection.
XMLAttributeitem (index:
any)
Returns the XMLAttribute with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
XMLAttributeitemByName (name:
string)
Returns the XMLAttribute with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of XMLAttributeitemByRange (from:
any, to:
any)
Returns the XMLAttributes within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | XMLAttribute Long Integer String |
The XMLAttribute, index, or name at the beginning of the range. Can accept: XMLAttribute, Long Integer or String. |
| to | XMLAttribute Long Integer String |
The XMLAttribute, index, or name at the end of the range. Can accept: XMLAttribute, Long Integer or String. |
XMLAttributelastItem ()
Returns the last XMLAttribute in the collection.
XMLAttributemiddleItem ()
Returns the middle XMLAttribute in the collection.
XMLAttributenextItem (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. |
XMLAttributepreviousItem (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.
Element of:
XMLElement.xmlAttributes