Random832 schrieb am 24.06.2016 um 15:09: > On Fri, Jun 24, 2016, at 02:39, dieter wrote: >> You want an incremental parser if the XML documents are so huge that >> you must process them incrementally rather than have a data structure >> representing the whole document (in memory). Incremental parsers >> for XML are usually called "SAX" parsers. > > You know what would be really nice? A "semi-incremental" parser that can > e.g. yield (whether through an event or through the iterator protocol) a > fully formed element (preferably one that can be queried with xpath) at > a time for each record of a document representing a list of objects. > Does anything like that exist?
http://lxml.de/parsing.html#incremental-event-parsing https://docs.python.org/3/library/xml.etree.elementtree.html#pull-api-for-non-blocking-parsing Stefan -- https://mail.python.org/mailman/listinfo/python-list