views:

45

answers:

1

I am creating a webservice which is going to parse huge xml files from different requests. I was exploring different xml parsers from which I read about XmlBeans and Digester would be easy to use and are very efficient. I felt Digester easier than that of XmlBeans but from documentation of XmlBeans I came to know that it uses Saxon 8.6.1 which is prepared by CERN so it must be better than that of Digester.

So which one should I go with XmlBeans or Digester for this scenario ?

+3  A: 

Well, if you have really huge XML files, than I don't recommend either of them. For high performance XML processing there are other solutions, or even custom parsers that are at least an order of magnitude better than those you describe. What to choose for huge XML files also depends partially on what you have: more memory or more CPU.

E.g. http://vtd-xml.sourceforge.net/ might be one fast alternative, but there are many others, so if your application's performance is critical, than you really need to compare them with some tests under your own realistic conditions.

Adrian A.
Thank you so much for this link. This project is indeed very very fast :).
A. Ionescu