MCPcopy Index your code
hub / github.com/clips/pattern / from_xml

Method from_xml

pattern/text/tree.py:1106–1109  ·  view source on GitHub ↗

Returns a new Text from the given XML string.

(cls, xml)

Source from the content-addressed store, hash-verified

1104
1105 @classmethod
1106 def from_xml(cls, xml):
1107 """ Returns a new Text from the given XML string.
1108 """
1109 return Text(parse_string(xml))
1110
1111 fromxml = from_xml
1112

Callers 1

test_xmlMethod · 0.45

Calls 2

parse_stringFunction · 0.85
TextClass · 0.70

Tested by 1

test_xmlMethod · 0.36