Lines Matching refs:events
1222 def iterparse(source, events=None, parser=None):
1226 *events* it is initialized with. The supported events are the strings
1227 "start", "end", "start-ns" and "end-ns" (the "ns" events are used to get
1228 detailed namespace information). If *events* is omitted, only
1229 "end" events are reported.
1231 *source* is a filename or file object containing XML data, *events* is
1232 a list of events to report back, *parser* is an optional parser instance.
1239 pullparser = XMLPullParser(events=events, _parser=parser)
1274 def __init__(self, events=None, *, _parser=None):
1282 if events is None:
1283 events = ("end",)
1284 self._parser._setevents(self._events_queue, events)
1316 events = self._events_queue
1317 while events:
1318 event = events.popleft()
1563 # events_to_report: a list of events to report during parsing (same as
1564 # the *events* of XMLPullParser's constructor.
1565 # events_queue: a list of actual parsing events that will be populated
1771 Serialises parse events to XML C14N 2.0.