[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object
Frederick Ross
report at bugs.python.org
Fri May 25 21:26:38 CEST 2012
Frederick Ross <madhadron at gmail.com> added the comment:
Antoine, It's not iterative parsing, it's a sequence of XML docs or json objects.
Eric, the server I'm retrieving from, for real time searches, steadily produces a stream of (each properly formed) XML or json documents containing new search results. However, at the moment I have to edit the stream on the fly to wrap an outer tag around it and remove any DTD in inner elements, or I can't use the XML parser. Such a workaround isn't possible with the json parser, since it has no iterative parsing mode.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14852>
_______________________________________
More information about the Python-bugs-list
mailing list