XMLItem

An XML item.

Methods:

duplicate, getElements, remove, select, toSource, toSpecifier

Objects:

Number, Object, XMLComments, XMLElements, XMLInstructions, XMLItems

Hierarchy:

Class: XMLItem

Subclasses: XMLElement | XMLComment | XMLInstruction | DTD

Property Listing

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

XMLElement

Document

XMLItem

readonly

The parent of the XMLItem (a Document, XMLElement or XMLItem).

properties

Object

read/write

A property that allows setting of several properties at the same time.

xmlComments

XMLComments XMLComment

readonly

A collection of XML comments.

xmlElements

XMLElements XMLElement

readonly

A collection of XML elements.

xmlInstructions

XMLInstructions XMLInstruction

readonly

A collection of XML instructions.

xmlItems

XMLItems XMLItem

readonly

A collection of XML items.

Method Listing

XMLItem duplicate ()

Duplicates the XMLItem.

XMLItem getElements ()

Resolves the object specifier, creating an array of object references.

undefined remove ()

Deletes the XMLItem.

undefined select ([existingSelection:SelectionOptions=SelectionOptions])

Selects the object.

Parameter

Type

Description

existingSelection

SelectionOptions

SelectionOptions.ADD_TO

SelectionOptions.REMOVE_FROM

SelectionOptions.REPLACE_WITH

The selection status of the XMLItem in relation to previously selected objects. (Optional)

(default: SelectionOptions.REPLACE_WITH)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

XMLRuleMatchData.element

Button.associatedXMLElement

Cell.associatedXMLElement

Document.associatedXMLElement

EPS.associatedXMLElement

FormField.associatedXMLElement

Graphic.associatedXMLElement

GraphicLine.associatedXMLElement

Group.associatedXMLElement

Image.associatedXMLElement

ImportedPage.associatedXMLElement

Movie.associatedXMLElement

Oval.associatedXMLElement

PDF.associatedXMLElement

PICT.associatedXMLElement

PageItem.associatedXMLElement

Polygon.associatedXMLElement

Rectangle.associatedXMLElement

Sound.associatedXMLElement

Story.associatedXMLElement

Table.associatedXMLElement

TextFrame.associatedXMLElement

WMF.associatedXMLElement

XmlStory.associatedXMLElement

Character.associatedXMLElements

InsertionPoint.associatedXMLElements

Line.associatedXMLElements

Paragraph.associatedXMLElements

Text.associatedXMLElements

TextColumn.associatedXMLElements

TextStyleRange.associatedXMLElements

Word.associatedXMLElements

XMLComment.parent

XMLElement.parent

XMLInstruction.parent

XMLItem.parent

Return

XMLItem.duplicate()

XMLItem.getElements()

XMLItems.anyItem()

XMLItems.everyItem()

XMLItems.nextItem()

XMLItems.previousItem()

XMLItems.itemByID()

XMLItems.item()

XMLItems.itemByName()

XMLItems.itemByRange()

XMLItems.firstItem()

XMLItems.lastItem()

XMLItems.middleItem()