Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been browsing the net and found theses two slides on site of XOM (XML object model):

Where they refer to SAX(push) and StAX(pull) parsers. So I'm wondering, what does it mean that a StAX parser isn't complete or correct in practice?

share|improve this question
Have you tried emailing the author of the slides for clarification? (Elliotte Harold). (If you get a response, perhaps you could post it as an answer here) – John Bartholomew Oct 25 '12 at 20:06
Thanks for asking this question! The site of the author is especially interesting. Have a look at his interview wih artima, where he classifys the different kind of XML APIs. Personally these days I favor the fifth kind-LINQ to XML. – AndreasScheinert Oct 26 '12 at 9:47
@John: Yes, I mailed him as per your advice, but so far I had no reply. – Daniel Fath Oct 27 '12 at 18:08
up vote 1 down vote accepted

I believe the comment was aimed more generally at the pull-based XML APIs and parsers of the time, not just StAX and its implementations. At the time the slide deck was written (over ten years ago!), there were known deficiencies with XMLPULL API design regarding the handling of namespaces and ill-formed documents – in fact, it was Rusty Harold himself who reported them! Also, StAX was in its infancy (JSR 173 did not hit final release until 2004), and other implementations were apparently not yet considered mature.

Ten years is a long time in the software world, and things may well have changed in the intervening time. If you want to know what the current state of the art is for a particular parser or set of parsers, you should ask about it. See for example this much more recent exchange, and questions with the stax tag, on Stack Overflow.

share|improve this answer
As I received no answer from Harold and this seems like a decent answer, I'm accepting it. – Daniel Fath Jan 7 '13 at 21:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.