XMLAttribute

An XML attribute.

Properties

Property Type Access Description
index number readonly The index of the XMLAttribute within its containing object.
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

XMLElementconvertToElement ([located:
XMLElementLocation=ELEMENT_START ][, markupTag:
XMLTag])
Converts the XML attribute to a child element of its parent element.

Parameter Type Description
located XMLElementLocation
:
ELEMENT_START
ELEMENT_END
The location of the new XML element within the parent XML element of the XML attribute. (Optional) (default: ELEMENT_START )
markupTag XMLTag The XML tag to apply to the new XML element. (Optional)

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

void remove ()
Deletes the XMLAttribute.

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

Parameter Type Description
existingSelection SelectionOptions
:
ADD_TO
REMOVE_FROM
REPLACE_WITH
The selection status of the XMLAttribute in relation to previously selected objects. (Optional) (default: REPLACE_WITH )

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

string toSpecifier ()
Retrieves the object specifier.

Used in:

XMLAttributes.previousItem (

obj:
XMLAttribute )

XMLAttributes.nextItem (

obj:
XMLAttribute )

Returned by:

Array of XMLAttribute XMLAttribute .getElements (

)

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
)

XMLAttribute XMLElement.convertToAttribute (
[using:
string]
)

Leave a Comment

Previous post:

Next post: