public class XMLText extends XMLCharacterData implements Text:
DOM text node implementation.
import klyn.io.xml.dom
text = XMLText("content", document)| Modifier and Type | Member | Description |
|---|---|---|
| public XMLText(data as String = "", ownerDocument as Document = null, nodeName as String = " super(nodeName, nodeType, data, ownerDocument) public readonly property | isElementContentWhitespaceisElementContentWhitespace as Boolean: |
Creates a text node. |
| public readonly property | wholeTextwholeText as String: |
Text from this node and its adjacent Text and CDATA siblings. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | replaceWholeTextreplaceWholeText(content as String) as Text throws DOMException: |
Replaces adjacent Text and CDATA siblings with this node's new content. |
| public | splitTextsplitText(offset as Int) as Text throws DOMException: |
Splits this Text or CDATA node at a UTF-16 offset. |