User Tools

Site Tools


DzDomNode

Enumerations

Properties

Methods

DAZ Script
voidappendChild ( DzDomNode child )
Booleanclear ()
DzDomNodecloneNode ( Boolean deep=true )
DzDomNodefirstChild ()
BooleanhasAttributes ()
BooleanhasChildNodes ()
voidinsertAfter ( DzDomNode newChild, DzDomNode refChild )
voidinsertBefore ( DzDomNode newChild, DzDomNode refChild )
BooleanisAttr ()
BooleanisCDATASection ()
BooleanisCharacterData ()
BooleanisComment ()
BooleanisDocument ()
BooleanisDocumentFragment ()
BooleanisDocumentType ()
BooleanisElement ()
BooleanisEntity ()
BooleanisEntityReference ()
BooleanisNotation ()
BooleanisNull ()
BooleanisProcessingInstruction ()
BooleanisSupported ( String feature, String version )
BooleanisText ()
DzDomNodelastChild ()
DzDomNodenamedItem ( String name )
DzDomNodenextSibling ()
voidnormalize ()
DzDomNodeownerDocument ()
DzDomNodeparentNode ()
DzDomNodepreviousSibling ()
voidremoveChild ( DzDomNode oldChild )
voidreplaceChild ( DzDomNode newChild, DzDomNode oldChild )

Detailed Description

This is an abstract base class that provides general functionality for DAZ Script DOM components.

Enumerations


: NodeType

TODO: Add description.

Properties


String : localName

The local name of the node. (Read Only)


String : namespaceURI

The namespace of the node. (Read Only)


String : nodeName

The name of the node. (Read Only)


NodeType : nodeType

The type of the node. (Read Only)


String : nodeValue

The node value.


String : prefix

The node prefix.

Methods


void : appendChild( DzDomNode child )

Appends child to the end of this node's child list.


Boolean : clear()

Converts the node into an invalid (Null) node. Its type and contents are cleared.


DzDomNode : cloneNode( Boolean deep=true )

Return Value:

  • A new node that is a (deep) copy of this node. If deep is true, it will recursively copy the node's children as well.

DzDomNode : firstChild()

Return Value:

  • This node's first child node. If this node has no children, it will return and invalid (Null) node.

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 newChild into this node's child list following refChild.


void : insertBefore( DzDomNode newChild, DzDomNode refChild )

Inserts newChild into this node's child list in front of refChild.


Boolean : isAttr()

Return Value:

  • true if the node is an attribute.

See Also:


Boolean : isCDATASection()

Return Value:

  • true if the node is an CDATA section.

See Also:


Boolean : isCharacterData()

Return Value:

  • true if the node is a character data.

See Also:


Boolean : isComment()

Return Value:

  • true if the node is a comment.

See Also:


Boolean : isDocument()

Return Value:

  • true if the node is a document.

See Also:


Boolean : isDocumentFragment()

Return Value:

  • true if the node is a document fragment.

See Also:


Boolean : isDocumentType()

Return Value:

  • true if the node is a document type.

See Also:


Boolean : isElement()

Return Value:

  • true if the node is an element.

See Also:


Boolean : isEntity()

Return Value:

  • true if the node is an entity.

See Also:


Boolean : isEntityReference()

Return Value:

  • true if the node is an entity reference.

See Also:


Boolean : isNotation()

Return Value:

  • true if the node is a notation.

See Also:


Boolean : isNull()

Return Value:

  • true if this node is invalid (Null).

Boolean : isProcessingInstruction()

Return Value:

  • true if the node is a processing instruction.

See Also:


Boolean : isSupported( String feature, String version )

Return Value:

  • true if the DOM implementation supports the given feature, otherwise false.

Boolean : isText()

Return Value:

  • true if the node is text.

See Also:


DzDomNode : lastChild()

Return Value:

  • This node's last child node. If this node has no children, it will return an invalid (Null) node.

DzDomNode : namedItem( String name )

Return Value:

  • The first direct child node with a matching name. If none is found, returns an invalid (Null) node.

DzDomNode : nextSibling()

Return Value:

  • This node's next sibling. If this node does not have a next sibling, it returns an invalid (Null) node.

void : normalize()

Converts all the node's children into standard form (e.g. adjacent text nodes will be merged )


DzDomNode : ownerDocument()

Return Value:

  • The document that this node belongs to, or an invalid (Null) node if this node is not part of a document.

DzDomNode : parentNode()

Return Value:

  • This node's parent node. If this node is top level it will return an invalid (Null) node.

DzDomNode : previousSibling()

Return Value:

  • This node's previous sibling. If this node does not have a previous sibling, it returns an invalid (Null) node.

void : removeChild( DzDomNode oldChild )

Removes oldChild from this node's child list.


void : replaceChild( DzDomNode newChild, DzDomNode oldChild )

Inserts newChild into this node's child list in place of refChild.