Message201734
Documentation on python website says:
xml.etree.ElementTree.iterparse(source, events=None, parser=None)
Parses an XML section into an element tree incrementally, and reports what’s going on to the user. source is a filename or file object containing XML data. events is a list of events to report back.
But 'events' must be a *tuple* or iterparse raises "TypeError: invalid event tuple"
Possibly also worth explaining that "start-ns" event is accompanied by a tuple of (namespace, url) rather than an element from the XML document. Currently the description just says "ns events are used to get detailed namespace information" but doesn't say how or give an example. |
|
Date |
User |
Action |
Args |
2013-10-30 13:57:26 | Peter.Harris | set | recipients:
+ Peter.Harris, docs@python |
2013-10-30 13:57:26 | Peter.Harris | set | messageid: <1383141446.52.0.417040462191.issue19452@psf.upfronthosting.co.za> |
2013-10-30 13:57:26 | Peter.Harris | link | issue19452 messages |
2013-10-30 13:57:26 | Peter.Harris | create | |
|