PyDocs

Nav

Structured Markup Processing Tools

Text

xml.dom

class
The Text interface represents text in the XML document. If the parser and DOM implementation support the DOM’s XML extension, portions of the text enclosed in CDATA marked sections are stored in CDATASection objects. These two interfaces are identical, but provide different values for the nodeType attribute.
Members of Text

d

data
The content of the text node as a string.

r

replaceWholeText
Replace the text of all Text nodes logically adjacent to this node with content, removing the other nodes.

s

splitText
Split this node into two nodes at offset, keeping the first part in this node and returning a new sibling node with the rest.

w

wholeText
The text of all Text nodes logically adjacent to this node, concatenated in document order.
0 Examples
No examples for xml.dom/Text.
See Also
No see-alsos for xml.dom/Text
0 Notes
No notes for Text