DzDomElement Class Reference
[DOM and XML Objects]

DAZ Script DOM element node. More...

Inheritance diagram for DzDomElement:

DzDomNode List of all members.

Properties

String tagName
String attribute (String name, String defValue)
String attribute (String name)
DzDomNode attributeNode (String name)
DzDomNode attributeNodeNS (String nsURI, String localName)
String attributeNS (String nsURI, String localName, String defValue)
Boolean hasAttribute (String name)
Boolean hasAttributeNS (String nsURI, String localName)
void removeAttribute (String name)
DzDomNode removeAttributeNode (DzDomNode oldAttr)
void removeAttributeNS (String nsURI, String localName)
void setAttribute (String name, String value)
DzDomNode setAttributeNode (DzDomNode newAttr)
DzDomNode setAttributeNodeNS (DzDomNode newAttr)
void setAttributeNS (String nsURI, String qName, String value)

Constructors

 DzDomElement ()

Detailed Description

DAZ Script DOM element node.

Represents an element node in a DOM document.


Constructor & Destructor Documentation

DzDomElement::DzDomElement (  ) 

Default constructor. Typically, you will not construct these directly, but will call DzDomDocument::createElement() to create a new element node as a member of a document.


Member Function Documentation

String DzDomElement::attribute ( String  name,
String  defValue 
)

Returns:
The value of the attribute with the given name, or defValue if the attribute does not exist.

String DzDomElement::attribute ( String  name  ) 

Returns:
The value of the attribute with the given name, or an empty string if the attribute does not exist.

DzDomNode DzDomElement::attributeNode ( String  name  ) 

Returns:
The node that represents the attribute called name. If the attribute does not exist, an invalid (Null) node is returned

DzDomNode DzDomElement::attributeNodeNS ( String  nsURI,
String  localName 
)

Returns:
The node that represents the attribute called name in the nsURI namespace. If the attribute does not exist, an invalid (Null) node is returned.

String DzDomElement::attributeNS ( String  nsURI,
String  localName,
String  defValue 
)

Returns:
The attribute called localName with the namespace nsURI. If the attribute does not exist, defValue is returned.

Boolean DzDomElement::hasAttribute ( String  name  ) 

Returns:
true if the element has an attribute with the given name, otherwise, returns false

Boolean DzDomElement::hasAttributeNS ( String  nsURI,
String  localName 
)

Returns:
true if the element has an attribute with the given name and namespace, otherwise, returns false

void DzDomElement::removeAttribute ( String  name  ) 

Removes the attribute called name.

DzDomNode DzDomElement::removeAttributeNode ( DzDomNode  oldAttr  ) 

Removes oldAttr from the element.

Returns:
The attribute that was removed.

void DzDomElement::removeAttributeNS ( String  nsURI,
String  localName 
)

Removes the attribute called name in the namespace.

void DzDomElement::setAttribute ( String  name,
String  value 
)

Adds an attribute called name with value. If an attribute with the given name already exists, it value is set to value.

DzDomNode DzDomElement::setAttributeNode ( DzDomNode  newAttr  ) 

Adds newAttr to this element. If an attribute with the same name already exists, it is replaced with the new one.

Returns:
The attribute that was replaced by newAttr. If no attribute was replaced, an invalid (Null) node is returned.

DzDomNode DzDomElement::setAttributeNodeNS ( DzDomNode  newAttr  ) 

Adds newAttr to this element. If an attribute with the same name already exists, it is replaced with the new one.

Returns:
The attribute that was replaced by newAttr. If no attribute was replaced, an invalid (Null) node is returned.

void DzDomElement::setAttributeNS ( String  nsURI,
String  qName,
String  value 
)

Adds an attribute called qName in the nsURI namespace with value. If an attribute with the given name already exists, it value is set to value.


Member Data Documentation

QString DzDomElement::tagName

The tag name of the element.


Generated on Thu Sep 24 12:21:11 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.