User Tools

Site Tools


DzDomAttr

Represents a Document Object Model (DOM) “Attribute”.

More...

Inherits :

Properties

DAZ Script
Stringname
Stringvalue

Methods

Detailed Description

A script wrapper for QDomAttr. This object represents an “Attribute” of a “Element” (DzDomElement) in a DOM document.

Instances of this object are not constructed directly, rather they are returned by calling DzDomDocument::createAttribute(). An easier method of adding or setting an attribute on an element is to call DzDomElement::setAttribute() on the element to which the attribute should be added or set.

Properties


String : name

The name of the attribute. (Read Only)


String : value

The value of the attribute.

Methods


DzDomNode : ownerElement()

Return Value:

  • The element that this attribute belongs to.

Boolean : specified()

Return Value:

  • true if the attribute has a value, otherwise false.