Java
Streaming API for XML (StAX)
17:23, 23 Mar 2002 UTC | Uche Ogbuji

The Java community process is developing a new API for pull parsing of XML. StAX is iterator based, to allow the programmer make lazy requests for parsing events. Otherwise, it has the same streaming basis as SAX.

The development of StAX was inspired by the needs of JAXB (XML data binding) and JAX-RPC (XML-based RPC).

Participants include Christopher Fry (the lead) and James Clark

Re: Streaming API for XML (StAX) (Craig - 15:23, 25 Mar 2002)

That's a very interesting point. I guess my exposure to XML processing has been limited to situations where you are waiting on the document to be processed and not the other way around.

Re: Streaming API for XML (StAX) (Andy Neilson - 13:52, 25 Mar 2002)

A "really thin wrapper around SAX" would miss some of the advantages of having a pull parser. Aside from simply not firing every possible event, if a pull parser can be optimized to skip doing other work when the consumer isn't looking at certain parts of the infoset.

If anything, it would make more sense to build a push interface on top of a pull interface, rather than other other way around!

Re: Streaming API for XML (StAX) (Craig - 13:28, 25 Mar 2002)

It's JSR 173 (link: http://jcp.org/jsr/detail/173.jsp). I hope this is just a really thin wrapper around the SAX parsing model. I agree that SAX is complicated, but I don't think that adding another full layer is the answer.

  
xmlhack: developer news from the XML community

Front page | Search | Find XML jobs

Related categories
Java