axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eran Chinthaka <chinth...@opensource.lk>
Subject Re: Stax and Axis2
Date Thu, 17 May 2007 04:44:45 GMT
-----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

iD8DBQFGS929jON2uBzUhh8RAipxAJ4lqpsGqwVP3wLdTc3pRP/j+GxzTACdEE8a
ywHXUJfH+E2mxkaVUObB4Iw=
=09gd
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message