InstancesXMLElement [] (index:
number)
Returns the XMLElement with the specified index.
Parameter | Type | Description |
index | number | The index. |
XMLElement add (markupTag:
varies[, xmlContent:
varies][, withProperties:
Object])
Creates a new XML element.
Parameter | Type | Description |
markupTag | String XMLTag | The XML tag used to identify the element. Can accept: String or XMLTag. |
xmlContent | Cell Graphic Movie PageItem Sound Story Table Text | The content to be marked up. Can accept: Text, Story, PageItem, Movie, Sound, Graphic, Table or Cell. (Optional) |
withProperties | Object | Initial values for properties of the new XMLElement (Optional) |
XMLElement anyItem ()
Returns any XMLElement in the collection.
number count ()
Displays the number of elements in the XMLElement.
Array of XMLElement everyItem ()
Returns every XMLElement in the collection.
XMLElement firstItem ()
Returns the first XMLElement in the collection.
XMLElement item (index:
varies)
Returns the XMLElement with the specified index or name.
Parameter | Type | Description |
index | Long Integer String | The index or name. Can accept: Long Integer or String. |
XMLElement itemByID (id:
number)
Returns the XMLElement with the specified ID.
Parameter | Type | Description |
id | number | The ID. |
Array of XMLElement itemByRange (from:
varies, to:
varies)
Returns the XMLElements within the specified range.
Parameter | Type | Description |
from | Long Integer String XMLElement | The XMLElement, index, or name at the beginning of the range. Can accept: XMLElement, Long Integer or String. |
to | Long Integer String XMLElement | The XMLElement, index, or name at the end of the range. Can accept: XMLElement, Long Integer or String. |
XMLElement lastItem ()
Returns the last XMLElement in the collection.
XMLElement middleItem ()
Returns the middle XMLElement in the collection.
XMLElement nextItem (obj:
XMLElement)
Returns the XMLElement whose index follows the specified XMLElement in the collection.
Parameter | Type | Description |
obj | XMLElement | The XMLElement whose index comes before the desired XMLElement. |
XMLElement previousItem (obj:
XMLElement)
Returns the XMLElement with the index previous to the specified index.
Parameter | Type | Description |
obj | XMLElement | The index of the XMLElement that follows the desired XMLElement. |
string toSource ()
Generates a string which, if executed, will return the XMLElement.
|