MCPcopy Index your code
hub / github.com/RustPython/RustPython / fromstringlist

Function fromstringlist

Lib/xml/etree/ElementTree.py:1380–1393  ·  view source on GitHub ↗

Parse XML document from sequence of string fragments. *sequence* is a list of other sequence, *parser* is an optional parser instance, defaulting to the standard XMLParser. Returns an Element instance.

(sequence, parser=None)

Source from the content-addressed store, hash-verified

1378fromstring = XML
1379
1380def fromstringlist(sequence, parser=None):
1381 """Parse XML document from sequence of string fragments.
1382
1383 *sequence* is a list of other sequence, *parser* is an optional parser
1384 instance, defaulting to the standard XMLParser.
1385
1386 Returns an Element instance.
1387
1388 """
1389 if not parser:
1390 parser = XMLParser(target=TreeBuilder())
1391 for text in sequence:
1392 parser.feed(text)
1393 return parser.close()
1394
1395# --------------------------------------------------------------------
1396

Callers

nothing calls this directly

Calls 4

feedMethod · 0.95
closeMethod · 0.95
XMLParserClass · 0.85
TreeBuilderClass · 0.85

Tested by

no test coverage detected