XMLXMLTags

A collection of XML tags.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

add(
[name], tagColor ​[, withProperties])
 → XMLTag
anyItem(
)
 → XMLTag
count(
)
 → number
everyItem(
)
 → XMLTag
firstItem(
)
 → XMLTag
item(
index)
 → XMLTag
itemByID(
id)
 → XMLTag
itemByName(
name)
 → XMLTag
itemByRange(
from, to)
 → XMLTag
lastItem(
)
 → XMLTag
middleItem(
)
 → XMLTag
nextItem(
obj)
 → XMLTag
previousItem(
obj)
 → XMLTag
toSource(
)
 → string
add(
[name], tagColor ​[, withProperties])
 → XMLTag
Creates a tag.
name string The name of the tag. (Optional)
tagColor The dolor of the tag, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as a UI color. Can accept: Array of 3 Reals (0 - 255) or UIColors enumerator. (Optional)
withProperties Object Initial values for properties of the new XMLTag (Optional)
anyItem(
)
 → XMLTag
Returns any XMLTag in the collection.
count(
)
 → number
Displays the number of elements in the XMLTag.
everyItem(
)
 → XMLTag
Returns every XMLTag in the collection.
firstItem(
)
 → XMLTag
Returns the first XMLTag in the collection.
item(
index)
 → XMLTag
Returns the XMLTag with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → XMLTag
Returns the XMLTag with the specified ID.
id number The ID.
itemByName(
name)
 → XMLTag
Returns the XMLTag with the specified name.
name string The name.
itemByRange(
from, to)
 → XMLTag
Returns the XMLTags within the specified range.
from The XMLTag, index, or name at the beginning of the range. Can accept: XMLTag, Long Integer or String.
to The XMLTag, index, or name at the end of the range. Can accept: XMLTag, Long Integer or String.
lastItem(
)
 → XMLTag
Returns the last XMLTag in the collection.
middleItem(
)
 → XMLTag
Returns the middle XMLTag in the collection.
nextItem(
obj)
 → XMLTag
Returns the XMLTag whose index follows the specified XMLTag in the collection.
obj XMLTag The XMLTag whose index comes before the desired XMLTag.
previousItem(
obj)
 → XMLTag
Returns the XMLTag with the index previous to the specified index.
obj XMLTag The index of the XMLTag that follows the desired XMLTag.
toSource(
)
 → string
Generates a string which, if executed, will return the XMLTag.