Adobe InDesign CS2 (4.0) Object Model JS: XMLAttribute

InDesign CS2

Class

XMLAttribute

 An XML attribute.

QuickLinks

getElements, remove, select, toSource, toSpecifier

Hierarchy

XMLElement
XMLAttribute

Properties

PropertyTypeAccessDescription
indexnumber readonlyThe index of the XMLAttribute within its containing object.
namestring r/wThe name of the XMLAttribute.
parentXMLElement readonlyThe parent of the XMLAttribute (a XMLElement).
propertiesObject r/wA property that allows setting of several properties at the same time.
valuestring r/wThe value of the XMLAttribute.

Methods

Instances

Array of Object getElements ()
Resolves the object specifier, creating an array of object references.

void remove ()
Deletes the XMLAttribute.

void select ([existingSelection: SelectionOptions=SelectionOptions.REPLACE_WITH])
Selects the object.

ParameterTypeDescription
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE_WITH
The selection status of the XMLAttribute in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH)

string toSource ()
Generates a string which, if executed, will return the XMLAttribute.

string toSpecifier ()
Retrieves the object specifier.

Used in:

array of XMLAttribute XMLAttributes.itemByRange (from: any, to: any)

XMLAttribute XMLAttributes.nextItem (obj: XMLAttribute)

XMLAttribute XMLAttributes.previousItem (obj: XMLAttribute)

Return

XMLAttribute XMLAttributes.add (name: string, value: string[, withProperties: Object])

XMLAttribute XMLAttributes.anyItem ()

Array of XMLAttribute XMLAttributes.everyItem ()

XMLAttribute XMLAttributes.firstItem ()

XMLAttribute XMLAttributes.item (index: any)

XMLAttribute XMLAttributes.itemByName (name: string)

Array of XMLAttribute XMLAttributes.itemByRange (from: any, to: any)

XMLAttribute XMLAttributes.lastItem ()

XMLAttribute XMLAttributes.middleItem ()

XMLAttribute XMLAttributes.nextItem (obj: XMLAttribute)

XMLAttribute XMLAttributes.previousItem (obj: XMLAttribute)

Jongware, 27-Jun-2010 v3.0.3dContents :: Index