XMLAttribute
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
eventListeners | EventListeners EventListener | readonly | A collection of event listeners. |
events | Events Event | readonly | A collection of events. |
index | number | readonly | The index of the XMLAttribute within its containing object. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
name | string | r/w | The name of the XMLAttribute. |
parent | XMLElement | readonly | The parent of the XMLAttribute (a XMLElement). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
value | string | r/w | The value of the XMLAttribute. |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
XMLElement convertToElement ([located:
XMLElementLocation=XMLElementLocation.ELEMENT_START][, markupTag:
XMLTag])
Converts the XML attribute to a child element of its parent element.
Parameter | Type | Description |
---|---|---|
located | XMLElementLocation: XMLElementLocation.ELEMENT_START XMLElementLocation.ELEMENT_END | The location of the new XML element within the parent XML element of the XML attribute. (Optional) (default: XMLElementLocation.ELEMENT_START) |
markupTag | XMLTag | The XML tag to apply to the new XML element. (Optional) |
Array of XMLAttribute getElements ()
Resolves the object specifier, creating an array of object references.
void remove ()
Deletes the XMLAttribute.
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the XMLAttribute.
Used in:
XMLAttribute XMLAttributes.nextItem (obj: XMLAttribute)
XMLAttribute XMLAttributes.previousItem (obj: XMLAttribute)
Return
Array of XMLAttribute XMLAttribute.getElements ()
XMLAttribute XMLAttributes.[] (index: number)
XMLAttribute XMLAttributes.add (name: string, value: string[, withProperties: Object])
XMLAttribute XMLAttributes.anyItem ()
Array of XMLAttribute XMLAttributes.everyItem ()
XMLAttribute XMLAttributes.firstItem ()
XMLAttribute XMLAttributes.item (index: varies)
XMLAttribute XMLAttributes.itemByName (name: string)
Array of XMLAttribute XMLAttributes.itemByRange (from: varies, to: varies)
XMLAttribute XMLAttributes.lastItem ()
XMLAttribute XMLAttributes.middleItem ()
XMLAttribute XMLAttributes.nextItem (obj: XMLAttribute)
XMLAttribute XMLAttributes.previousItem (obj: XMLAttribute)
XMLAttribute XMLElement.convertToAttribute ([using: string])
Jongware, 28-Apr-2012 v3.0.3i | Contents :: Index |