Name
CDATASection
Synopsis
This interface represents a CDATA section in an XML
document. CDATASection
is a subinterface of
Text
and does not define any methods of its own.
The content of the CDATA section is available through the
getNodeValue( )
method inherited from Node, or
through the getData( )
method inherited from
CharacterData
. Although
CDATASection
nodes can often be treated in the
same way as Text
nodes, note that the
Node.normalize( )
method does not merge adjacent
CDATA sections.
Figure 21-2. org.w3c.dom.CDATASection
public interface CDATASection extends Text {
}
Returned By
Document.createCDATASection( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.