MCPcopy Index your code
hub / github.com/python/cpython / createTextNode

Method createTextNode

Lib/xml/dom/minidom.py:1694–1700  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

1692 return e
1693
1694 def createTextNode(self, data):
1695 if not isinstance(data, str):
1696 raise TypeError("node contents must be a string")
1697 t = Text()
1698 t.data = data
1699 t.ownerDocument = self
1700 return t
1701
1702 def createCDATASection(self, data):
1703 if not isinstance(data, str):

Calls 1

TextClass · 0.70