November 2002
Intermediate to advanced
1120 pages
21h 2m
English
The CharacterData interface is a generic superinterface for nodes that are composed mostly of text, including Text, CDATASection, and Comment. The CharacterData interface is almost never used directly. Rather, it is used as an instance of one of these three subinterfaces. But you almost always work with text, CDATA section, and comment nodes using the methods of the CharacterData interface.
Example 11.7 summarizes the CharacterData interface. This interface has methods that manipulate the text content of this node. As usual, it also inherits all the methods of its superinterface Node such as getParentNode() and getNodeValue().
package org.w3c.dom; public interface CharacterData ... |
Read now
Unlock full access