XMLText
classin packageklyn.io.xml.dom
public class XMLText extends XMLCharacterData implements Text:
└ XMLNode
└ XMLText
All Implemented Interfaces: Text

DOM text node implementation.

Example
import klyn.io.xml.dom

text = XMLText("content", document)
Inherited Attributes
attributeInherited Attributes from Node: ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Properties
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 isElementContentWhitespace
isElementContentWhitespace as Boolean:
Creates a text node.
public readonly property wholeText
wholeText as String:
No summary.
Inherited Properties
propertyInherited Properties from XMLCharacterData: data, length
propertyInherited Properties from Text: isElementContentWhitespace, wholeText
propertyInherited Properties from XMLNode: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
propertyInherited Properties from CharacterData: data, length
propertyInherited Properties from Object: type
propertyInherited Properties from Node: attributes, baseURI, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, textContent
Methods
Modifier and Type Member Description
public replaceWholeText
replaceWholeText(content as String) as Text throws DOMException:
Performs a DOM operation.
public splitText
splitText(offset as Int) as Text throws DOMException:
Performs a DOM operation.
Inherited Methods
methodInherited Methods from XMLCharacterData: appendData, deleteData, insertData, replaceData, substringData
methodInherited Methods from Text: replaceWholeText, splitText
methodInherited Methods from XMLNode: _collectElementsByTagName, _collectElementsByTagNameNS, _setNamespace, _setOwnerDocument, _setOwnerDocumentRecursive, _setParentNode, appendChild, cloneNode, compareDocumentPosition, getAttribute, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData
methodInherited Methods from CharacterData: appendData, deleteData, insertData, replaceData, substringData
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml
methodInherited Methods from Node: appendChild, cloneNode, compareDocumentPosition, getAttribute, getFeature, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setUserData