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


Groups > comp.lang.python > #110959 > unrolled thread

Re: Which one is the best XML-parser?

Started byStefan Behnel <stefan_ml@behnel.de>
First post2016-07-02 16:03 +0200
Last post2016-07-02 16:03 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#110959 — Re: Which one is the best XML-parser?

FromStefan Behnel <stefan_ml@behnel.de>
Date2016-07-02 16:03 +0200
SubjectRe: Which one is the best XML-parser?
Message-ID<mailman.26.1467468250.2295.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web