XMLItem
An XML item.
Superclass of DTD, XMLComment, XMLElement, and XMLInstruction
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
dtds | DTDs | readonly | A collection of DTDs. |
id | number | readonly | The unique ID of the XMLItem. |
index | number | readonly | The index of the XMLItem within its containing object. |
parent | DocumentXMLElement XMLItem |
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
Instances
XMLItem duplicate ()
Duplicates the XMLItem.
XMLElement move (to:
LocationOptions[, reference:
any])
Move element before/after another element or text object, or to beginning/end
Parameter | Type | Description |
---|---|---|
to | LocationOptions: LocationOptions.BEFORE LocationOptions.AFTER LocationOptions.AT_END LocationOptions.AT_BEGINNING LocationOptions.UNKNOWN | Location |
reference | Text XMLItem | Before/after this object. Can accept: XMLItem or Text. (Optional) |
void remove ()
Deletes the XMLItem.
void select ([existingSelection:
SelectionOptions=SelectionOptions.REPLACE])
Select this object.
Parameter | Type | Description |
---|---|---|
existingSelection | SelectionOptions: SelectionOptions.ADD_TO SelectionOptions.REMOVE_FROM SelectionOptions.REPLACE | How to handle the existing selection (Optional) (default: SelectionOptions.REPLACE) |
Element of
DTD.parent
XMLComment.parent
XMLElement.parent
XMLInstruction.parent
XMLItem.parent
Used in:
XMLElement DTD.move (to: LocationOptions[, reference: any])
XMLElement XMLComment.move (to: LocationOptions[, reference: any])
XMLElement XMLElement.move (to: LocationOptions[, reference: any])
XMLElement XMLInstruction.move (to: LocationOptions[, reference: any])
XMLElement XMLItem.move (to: LocationOptions[, reference: any])
Return
XMLItem XMLItem.duplicate ()
Jongware, 27-Jun-2010 v3.0.3d | Contents :: Index |