Inheritance diagram for DzDomElement:
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 () |
Represents an element node in a DOM document.
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.
defValue
if the attribute does not exist.
name
. If the attribute does not exist, an invalid (Null) node is returned
name
in the nsURI
namespace. If the attribute does not exist, an invalid (Null) node is returned.
localName
with the namespace nsURI
. If the attribute does not exist, defValue
is returned.
void DzDomElement::removeAttribute | ( | String | name | ) |
Removes the attribute called name
.
Removes oldAttr
from the element.
Removes the attribute called name
in the namespace.
Adds an attribute called name
with value
. If an attribute with the given name already exists, it value is set to value
.
Adds newAttr
to this element. If an attribute with the same name already exists, it is replaced with the new one.
newAttr
. If no attribute was replaced, an invalid (Null) node is returned.
Adds newAttr
to this element. If an attribute with the same name already exists, it is replaced with the new one.
newAttr
. If no attribute was replaced, an invalid (Null) node is returned.
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
.
QString DzDomElement::tagName |
The tag name of the element.