Base type for all nodes in a Document Object Model (DOM) tree.
Inherits :
Inherited By : DzDomAttr, DzDomBasicNode, DzDomCharacterData, DzDomDocument, DzDomDocumentFragment, DzDomDocumentType, DzDomElement, DzDomEntity, DzDomEntityReference, DzDomNotation and DzDomProcessingInstruction
A script wrapper for QDomNode. This is an abstract base type that provides general functionality for Document Object Model (DOM) nodes.
For more information about the Document Object Model (DOM) see the Level 1 and Level 2 Core specifications.
For a more general introduction of the DOM implementation see the DzDomDocument documentation.
TODO: Add description.
Holds the local name of this node, if the node uses namespaces; only DzDomElement or DzDomAttr nodes can have namespaces; a namespace must have be specified at creation time - it is not possible to add a namespace post-creation.. (Read Only)
Holds the namespace URI of this node. (Read Only)
Holds the name of this node - the meaning of which depends on nodeType : (Read Only)
Holds the type of this node. (Read Only)
Holds the value of this node - the meaning of which depends on nodeType :
Holds the namespace prefix of this node; only DzDomElement or DzDomAttr nodes can have namespaces; a namespace prefix must have be specified at creation time - it is not possible to add a namespace post-creation.
void : appendChild( DzDomNode child )
Appends a node in the DOM to the end of this node's child list.
Parameter(s):
Array : childNodes()
Return Value:
Since:
Converts the node into a DzDomBasicNode. Its type and contents are cleared.
DzDomNode : cloneNode( Boolean deep=true )
Parameter(s):
true
(default), the return value will be a recursive copy this node and all of its children.Return Value:
Number : columnNumber()
Return Value:
Since:
DzDomNode : firstChild()
Return Value:
DzDomNode : firstChildElement( String tagName=“” )
Parameter(s):
Return Value:
tagName
is non-empty, the first child DzDomElement of this node with a matching name (if any), otherwise the first child DzDomElement (if any), otherwise a DzDomBasicNode. If tagName
is empty, the first child DzDomElement (if any), otherwise a DzDomBasicNode.Since:
Boolean : hasAttributes()
Return Value:
true
if the node has attributes, otherwise false
.Boolean : hasChildNodes()
Return Value:
true
if this node has children, otherwise false
.void : insertAfter( DzDomNode newChild, DzDomNode refChild )
Inserts a node in the DOM into this node's child list after another node.
Parameter(s):
void : insertBefore( DzDomNode newChild, DzDomNode refChild )
Inserts a node in the DOM into this node's child list in front of another node.
Parameter(s):
Return Value:
true
if this node is an attribute, otherwise false
.See Also:
Return Value:
true
if this node is a CDATA section, otherwise false
.See Also:
Return Value:
true
if this node is a character data, otherwise false
.See Also:
Return Value:
true
if this node is a comment, otherwise false
.See Also:
Boolean : isDocument()
Return Value:
true
if this node is a document, otherwise false
.See Also:
Boolean : isDocumentFragment()
Return Value:
true
if this node is a document fragment, otherwise false
.See Also:
Return Value:
true
if this node is a document type, otherwise false
.See Also:
Return Value:
true
if this node is an element, otherwise false
.See Also:
Return Value:
true
if this node is an entity, otherwise false
.See Also:
Return Value:
true
if this node is an entity reference, otherwise false
.See Also:
Boolean : isNotation()
Return Value:
true
if this node is a notation, otherwise false
.See Also:
Return Value:
true
if this node is invalid (Null), otherwise false
.See Also:
Boolean : isProcessingInstruction()
Return Value:
true
if this node is a processing instruction, otherwise false
.See Also:
Boolean : isSupported( String feature, String version )
Parameter(s):
Return Value:
true
if the DOM implementation supports the specified feature in the specified version, otherwise false
.Return Value:
true
if this node is text, otherwise false
.See Also:
DzDomNode : lastChild()
Return Value:
DzDomNode : lastChildElement( String tagName=“” )
Parameter(s):
Return Value:
tagName
is non-empty, the last child DzDomElement of this node with a matching name (if any), otherwise the last child DzDomElement (if any), otherwise a DzDomBasicNode. If tagName
is empty, the last child DzDomElement (if any), otherwise a DzDomBasicNode.Since:
Number : lineNumber()
Return Value:
Since:
DzDomNode : namedItem( String name )
Parameter(s):
Return Value:
DzDomNode : nextSibling()
Return Value:
DzDomNode : nextSiblingElement( String tagName=“” )
Parameter(s):
Return Value:
tagName
is non-empty, the next sibling DzDomElement of this node with a matching name (if any), otherwise any next sibling DzDomElement (if any), otherwise a DzDomBasicNode. If tagName
is empty, the next sibling DzDomElement (if any), otherwise a DzDomBasicNode.Since:
void : normalize()
Converts all of this node's children into standard form (e.g. adjacent text nodes will be merged).
DzDomNode : ownerDocument()
Return Value:
DzDomNode : parentNode()
Return Value:
DzDomNode : previousSibling()
Return Value:
DzDomNode : previousSiblingElement( String tagName=“” )
Parameter(s):
Return Value:
tagName
is non-empty, the previous sibling DzDomElement of this node with a matching name (if any), otherwise any previous sibling DzDomElement (if any), otherwise a DzDomBasicNode. If tagName
is empty, the previous sibling DzDomElement (if any), otherwise a DzDomBasicNode.Since:
void : removeChild( DzDomNode oldChild )
Removes a node in the DOM from this node's child list.
Parameter(s):
void : replaceChild( DzDomNode newChild, DzDomNode oldChild )
Inserts a node in the DOM into this node's child list in place of another node.
Parameter(s):