CDATASection is an Extended DOM feature, and is not used in HTML contexts.
Within the DOM, CDATASections are treated essentially as Text blocks. Their distinct type is retained in order to allow us to properly recreate the XML syntax when we write them out.
Reminder: CDATA IS NOT A COMPLETELY GENERAL SOLUTION; it can't quote its own end-of-block marking. If you need to write out a CDATA that contains the ]]> sequence, it's your responsibility to split that string over two successive CDATAs at that time.
CDATA does not participate in Element.normalize() processing.
Modifier and Type | Field and Description |
---|---|
pack-priv static final long | serialVersionUID
Hides com. |
Access | Constructor and Description |
---|---|
public | CDATASectionImpl(CoreDocumentImpl ownerDoc, String data)
Factory constructor for creating a CDATA section. |
Modifier and Type | Method and Description |
---|---|
public String | getNodeName()
Overrides com. Implements org. Returns the node name. |
public short | getNodeType()
Overrides com. Implements org. A short integer indicating what type of node this is. |
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID Hides com. Serialization version. |
CDATASectionImpl | back to summary |
---|---|
public CDATASectionImpl(CoreDocumentImpl ownerDoc, String data) Factory constructor for creating a CDATA section. |
getNodeName | back to summary |
---|---|
public String getNodeName() Overrides com. Implements org. Returns the node name. |
getNodeType | back to summary |
---|---|
public short getNodeType() Overrides com. Implements org. A short integer indicating what type of node this is. The named constants for this value are defined in the org.w3c.dom.Node interface. |