class DOM_Attr : public DOM_Node
The DOM_Attr class refers to an attribute of an XML element
| | Constructors and assignment operators
| ||||||||
| | Destructor
| ||||||||
| | Functions introduced in DOM Level 2.
| ||||||||
| | Getter functions
| ||||||||
| | Setter functions
|
Cloning function.
Destructor.
Equality and Inequality operators.
Functions to modify the DOM Node.
newChild before the existing child node
refChild
oldChild with newChild
in the list of children, and returns the oldChild node
oldChild from the list
of children, and returns it
newChild to the end of the list of children of
this node
Get functions.
NodeList that contains all children of this node
NamedNodeMap containing the attributes of this node (if it
is an Element) or null otherwise
Document object associated with this node
Query functions.
Set functions.
TheDOM_Attrclass refers to an attribute of an XML element. Typically the allowable values for the attribute are defined in a documenttype definition.
DOM_Attrobjects inherit theDOM_Nodeinterface, but since attributes are not actually child nodes of the elements they are associated with, the DOM does not consider them part of the document tree. Thus, theDOM_NodeattributesparentNode,previousSibling, andnextSiblinghave a null value forDOM_Attrobjects. The DOM takes the view that attributes are properties of elements rather than having a separate identity from the elements they are associated with; this should make it more efficient to implement such features as default attributes associated with all elements of a given type. Furthermore, attribute nodes may not be immediate children of aDocumentFragment. However, they can be associated withElementnodes contained within aDocumentFragment. In short, users of the DOM need to be aware thatAttrnodes have some things in common with other objects inheriting theNodeinterface, but they also are quite distinct.
DOM_Attr(const DOM_Attr &other)
DOM_Attr that refers to the
same underlying Attribute as the original. See also DOM_Node::clone(),
which will copy an actual attribute, rather than just creating a new
reference to the original attribute.
DOM_Attr& operator = (const DOM_Attr &other)
DOM_Attr& operator = (const DOM_NullPtr *val)
bool getSpecified() const
DOMString getValue() const
void setSpecified(bool spec)
Element node this attribute is attached to or
null if this attribute is not in use
alphabetic index hierarchy of classes
| XML Parser for C++ 2.0 Copyright © IBM Corp, 1999 Center for Java Technology 10275 N. De Anza Blvd. Cupertino CA 95014 USA Email: xml4c@us.ibm.com |
|
generated by doc++