I am writing a little article on alternatives to the standard JAXP library. I found plenty of material on JDOM but not a whole lot on StAX. StAX is the "Streaming API for XML" or (pull-pasing) alternative to SAX. There is a JSR-173 finalized in March 2004 and StAX is expected to become part of Java 6.0. I was wondering if anybody here has used it and could comment on how usable it is compared to SAX. Bill
I've written some Stax code. Anybody comfortable writing SAX won't find it hard to write Stax, but the process is a little bit different. It'll seem more like DOM not because of the API, but because you have to know the structure of the XML tree you are trying to traverse. Stax is definitely faster. The fussy part about Stax is that you have to role up your shirt sleeves to get things like validation.