question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should support SAX like function?

See original GitHub issue
Sometime, I need parse huge json input or I need customize the pasre
process. Having SAX stream API is going to be very helpful.

Original issue reported on code.google.com by jiming...@gmail.com on 4 Aug 2008 at 3:01

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
GoogleCodeExportercommented, Mar 19, 2015
Just a suggestion: make it "pull" variety (~= stax), since it is trivial to 
invert
Stax to produce SAX-like events (so "SAX" part can build on lower-level "Stax" 
part).
The reverse is not generally possible without multi-threading (or language 
support
for co-procedures/closures).

Original comment by tsaloranta@gmail.com on 11 Aug 2008 at 10:30

0reactions
GoogleCodeExportercommented, Mar 19, 2015
We dont have SAX like functions, but Gson 1.4 adds a JsonParserAsync class that 
lets 
you parse multiple JSON objects on a stream. 

Overall, backwards compatibility is quite important for us, so I dont see us 
breaking 
that in favor of a SAX like parser (which is in general harder to use).

Original comment by inder123 on 1 Oct 2009 at 4:01

  • Changed state: WontFix
Read more comments on GitHub >

github_iconTop Results From Across the Web

The Definitive Guide to Saxophone Section Playing
This article will deal with various aspects of playing the saxophone in jazz ensemble, concert band, rock bands, and show bands both as...
Read more >
How to Support a Vocalist on Saxophone - YouTube
This tutorial looks at the important aspect of the support role a saxophonist should take when accompanying a vocalist.
Read more >
Why is startElement() of a SAX parser a callback function?
A SAX parser, once having begun parsing an XML document, will call your callback/handler as it encounters elements. It calls you back, providing...
Read more >
20.9. xml.sax — Support for SAX2 parsers
The xml.sax module is not secure against maliciously constructed data. If you need to parse untrusted or unauthenticated data see XML vulnerabilities. The ......
Read more >
xml.sax — Support for SAX2 parsers — Python 3.11.1 ...
Create a SAX parser and use it to parse a document. The document, passed in as filename_or_stream, can be a filename or a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found