DOM_Attribute

External objects

Properties

Property Description
$attname The name of the attribute
$attspecified If true, the attribute was explicitly given a value
$attvalue The value of the attribute
$element The DOM element object which owns the attribute, or NULL if the attribute is not in use (read only)
$localname The local part of the qualified name of the node (read only)
$namespaceuri The namespace URI of the node, or empty if it is unspecified (read only)
$nodename The name of the node (not assignable)
$nodetype The type of the node (one of the kXMLNode... constants)
$prefix The namespace prefix of the node, or empty if it is unspecified

Methods

Method Description
$appendchild $appendchild(oObj,&cErrorText) appends oObj to the end of the list of children; returns true for success, or false and cErrorText for failure
$childnodes $childnodes(&cErrorText) returns a node list object listing the children of this object, or NULL and cErrorText if an error occurs
$clonenode $clonenode(bRecursive) returns a new object which is a copy of the node (and its children if bRecursive is true) (note: cloning an element with bRecursive = false also clones the attributes)
$firstchild $firstchild() returns the first child of this object; NULL if there are no children
$hasattributes $hasattributes() returns true if the node is an element which has attributes
$haschildnodes $haschildnodes() returns true if the object has children
$insertbefore $insertbefore(oObjToInsert,oObjBefore,&cErrorText) inserts oObjToInsert into the list of children, before oObjBefore; returns true for success, or false and cErrorText for failure
$issupported $issupported(cFeature,cVersion) returns true if the specified version of the specified feature is supported
$lastchild $lastchild() returns the last child of this object; NULL if there are no children
$nextsibling $nextsibling() returns the next sibling of this object; NULL if there is no next sibling
$ownerdocument $ownerdocument() returns the owner document containing this object
$parentnode $parentnode() returns the parent object of this object; NULL if there is no parent
$previoussibling $previoussibling() returns the previous sibling of this object; NULL if there is no previous sibling
$removechild $removechild(oObj,&cErrorText) removes oObj from the list of children; returns true for success, or false and cErrorText for failure
$replacechild $replacechild(oObjNew,oObjOld,&cErrorText) replaces oObjOld in the list of children, with oObjNew; returns true for success, or false and cErrorText for failure