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)
| 1382 | fromstring = XML |
| 1383 | |
| 1384 | def fromstringlist(sequence, parser=None): |
| 1385 | """Parse XML document from sequence of string fragments. |
| 1386 | |
| 1387 | *sequence* is a list of other sequence, *parser* is an optional parser |
| 1388 | instance, defaulting to the standard XMLParser. |
| 1389 | |
| 1390 | Returns an Element instance. |
| 1391 | |
| 1392 | """ |
| 1393 | if not parser: |
| 1394 | parser = XMLParser(target=TreeBuilder()) |
| 1395 | for text in sequence: |
| 1396 | parser.feed(text) |
| 1397 | return parser.close() |
| 1398 | |
| 1399 | # -------------------------------------------------------------------- |
| 1400 |
nothing calls this directly
no test coverage detected
searching dependent graphs…