An XML item.
Properties
| Property | Type | Access | Description |
|---|---|---|---|
| id | number | readonly | The unique ID of the XMLItem. |
| index | number | readonly | The index of the XMLItem within its containing object. |
| parent | any | readonly | The parent of the XMLItem (a Document, XMLElement or XMLItem). |
| properties | Object | r/w | A property that allows setting of several properties at the same time. |
| xmlComments | XMLComments | readonly | A collection of XML comments. |
| xmlElements | XMLElements | readonly | A collection of XML elements. |
| xmlInstructions | XMLInstructions | readonly | A collection of XML instructions. |
| xmlItems | XMLItems | readonly | A collection of XML items. |
Methods
XMLItemduplicate ()
Duplicates the XMLItem.
Array of XMLItemgetElements ()
Resolves the object specifier, creating an array of object references.
void remove ()
Deletes the XMLItem.
void select ([existingSelection:
SelectionOptions=REPLACE_WITH ])
Selects the XMLItem.
| Parameter | Type | Description |
|---|---|---|
| existingSelection | SelectionOptions : ADD_TO REMOVE_FROM REPLACE_WITH |
The selection status of the XMLItem in relation to previously selected objects. (Optional) (default: REPLACE_WITH ) |
string toSource ()
Generates a string which, if executed, will return the XMLItem.
string toSpecifier ()
Retrieves the object specifier.
Element of:
Button.associatedXMLElement
Cell.associatedXMLElement
Character.associatedXMLElements
Document.associatedXMLElement
EPS.associatedXMLElement
FormField.associatedXMLElement
Graphic.associatedXMLElement
GraphicLine.associatedXMLElement
Group.associatedXMLElement
Image.associatedXMLElement
ImportedPage.associatedXMLElement
InsertionPoint.associatedXMLElements
Line.associatedXMLElements
Movie.associatedXMLElement
Oval.associatedXMLElement
PageItem.associatedXMLElement
Paragraph.associatedXMLElements
PDF.associatedXMLElement
PICT.associatedXMLElement
Polygon.associatedXMLElement
Rectangle.associatedXMLElement
Sound.associatedXMLElement
Story.associatedXMLElement
Table.associatedXMLElement
Text.associatedXMLElements
TextColumn.associatedXMLElements
TextFrame.associatedXMLElement
TextStyleRange.associatedXMLElements
WMF.associatedXMLElement
Word.associatedXMLElements
XMLRuleMatchData.element
XmlStory.associatedXMLElement
Used in:
XMLItems.previousItem (
obj:
XMLItem )
XMLItems.nextItem (
obj:
XMLItem )
Returned by:
XMLItem XMLItem .duplicate (
)
Array of XMLItem XMLItem .getElements (
)
XMLItem XMLItems.anyItem (
)
Array of XMLItem XMLItems.everyItem (
)
XMLItem XMLItems.firstItem (
)
XMLItem XMLItems.item (
index:
any
)
XMLItem XMLItems.itemByID (
id:
number
)
XMLItem XMLItems.itemByName (
name:
string
)
Array of XMLItem XMLItems.itemByRange (
from:
any, to:
any
)
XMLItem XMLItems.lastItem (
)
XMLItem XMLItems.middleItem (
)
XMLItem XMLItems.nextItem (
obj:
XMLItem
)
XMLItem XMLItems.previousItem (
obj:
XMLItem
)