public interface Text extends CharacterData
CDATASection
nodes.ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Modifier and Type | Method and Description |
---|---|
Text |
splitText(int offset)
Splits the node into two text nodes.
|
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, normalize, removeChild, replaceChild, setNodeValue
Text splitText(int offset)
offset
, and the new node is inserted as the next sibling.
The new node created is also returned.offset
- how far from the beginning to start splittingText
node containing the data after offset