Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #110959

Re: Which one is the best XML-parser?

From Stefan Behnel <stefan_ml@behnel.de>
Newsgroups comp.lang.python
Subject Re: Which one is the best XML-parser?
Date 2016-07-02 16:03 +0200
Message-ID <mailman.26.1467468250.2295.python-list@python.org> (permalink)
References <1312978293.949108.1466715441953.JavaMail.yahoo.ref@mail.yahoo.com> <1312978293.949108.1466715441953.JavaMail.yahoo@mail.yahoo.com> <87r3bnrsy4.fsf@handshake.de> <1466773773.502497.647387441.16AAD74F@webmail.messagingengine.com> <nl8hkd$pk9$1@ger.gmane.org>

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Which one is the best XML-parser? Stefan Behnel <stefan_ml@behnel.de> - 2016-07-02 16:03 +0200

csiph-web