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)
| 1378 | fromstring = XML |
| 1379 | |
| 1380 | def 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 |
nothing calls this directly
no test coverage detected