The DOM_CharacterData
interface extends Node with a set of
methods for accessing character data in the DOM
Constructors and assignment operator
| |||||||||||
Destructor.
| |||||||||||
Functions that set or change data.
| |||||||||||
Getter functions.
|
Cloning function.
Constructors and assignment operators
Equality and Inequality operators.
Functions introduced in DOM Level 2.
null
if it is unspecified
null
if it is unspecified
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_CharacterData
interface extends Node with a set of methods for accessing character data in the DOM. For clarity this set is defined here rather than on each class that uses these methods. No DOM objects correspond directly toCharacterData
, thoughText
and others do inherit the interface from it. Alloffset
s in this interface start from 0, and index in terms of Unicode 16 bit storage units.
DOM_CharacterData
can exist. They will be null when created
by this constructor, and can then be assigned to refer to Text
or CDATASection nodes.
CharacterData
node. However,
implementation limits may mean that the entirety of a node's data may
not fit into a single DOMString
. In such cases, the user
may call substringData
to retrieve the data in
appropriately sized pieces.
DOMString
variable on the implementation
platform.
data
and
the substringData
method below.
This may have the value
zero, i.e., CharacterData
nodes may be empty.
data
, or if the
specified count
is negative.
DOMSTRING_SIZE_ERR: Raised if the specified range of text does not
fit into a DOMString
.offset
and
count
exceeds the length
, then all
characters to the end of the data are returned.
count - The number of characters to extract.
data
provides access to the concatenation of
data
and the DOMString
specified.
DOMString
to append.
data
.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
arg - The DOMString
to insert.
data
and length
reflect the change.
data
, or if the
specified count
is negative.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
count - The number of characters to delete. If the sum of
offset
and count
exceeds length
then all characters from offset
to the end of the data
are deleted.
data
, or if the
specified count
is negative.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
count - The number of characters to replace. If the sum of
offset
and count
exceeds length
, then all characters to the end of the data are replaced (i.e., the
effect is the same as a remove
method call with the same
range, followed by an append
method invocation).
arg - The DOMString
with which the range must be
replaced.
DOMString
to set.
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 |
|