Thanks to every body it helped Vibhor ________________________________
From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Thu 5/17/2007 12:44 AM To: [email protected] Subject: Re: Stax and Axis2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Vibhor_Sharma wrote: > Hi > Few conceptual question > > why did we use the STAX in Axis2 There are couple of reasons behind we using StAX instead of SAX or DOM. If you look at why StAX is better compared to SAX or DOM, you will get first few reasons. In addition to that we wanted to have deferred building capability for Axiom. Meaning, sometime you do not need to build the whole XML tree within Axis2 to access required information. Only StAX provides the controlled parsing approach. When you start parsing XML with SAX or DOM they will not stop until you finish reading the whole XML. > and why is it so important to use it ? I hope the above answered this as well. > why was'nt SAX used? Please see a tutorial on StAX. > > Why only woodstox STAX used why not some other implementation? We initially used BEA implementation and it sometimes had problems. Woodstox seemed to better in-terms of performance and implementation. Tatu, who mainly maintains woodstox helps to improve woodstox a lot. > > Is it possible to plugin any other event based parser in Axis2? or it > relies on woodstox and for that matter STAX only? You can plugin any StAX implementation. But some implementations *might* have some bugs in them. If you want to switch implementations it is just a matter of putting the required implementation in the classpath. BTW, interesting set of questions from you, which I didn't hear from anyone in this list. Thanks for motivating us to re-think about our initial strategies and I think they still hold even now :) Chinthaka -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org <http://enigmail.mozdev.org/> iD8DBQFGS929jON2uBzUhh8RAipxAJ4lqpsGqwVP3wLdTc3pRP/j+GxzTACdEE8a ywHXUJfH+E2mxkaVUObB4Iw= =09gd -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
