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_Attr
class refers to an attribute of an XML element. Typically the allowable values for the attribute are defined in a documenttype definition.
DOM_Attr
objects inherit theDOM_Node
interface, 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_Node
attributesparentNode
,previousSibling
, andnextSibling
have a null value forDOM_Attr
objects. 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 withElement
nodes contained within aDocumentFragment
. In short, users of the DOM need to be aware thatAttr
nodes have some things in common with other objects inheriting theNode
interface, but they also are quite distinct.
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.
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 |
|