I need java bean representation of an XML file. So I guess Digester is the one to be used. I do see that it is being used by other products like Struts to construct java representation of config files. More importantly does it perform well for say an XML file of size say 5MB? Any indicators of performance of digester? thanks
Originally posted by Pradeep Bhat: Is Digester similar to JAXB?
Yes the concept look similar. I have'nt used either of them though . Except that i'm really looking forward to use digester if it satisfies our requirement.Performance is our only concern.
Originally posted by karthik Guru: I need java bean representation of an XML file. So I guess Digester is the one to be used. I do see that it is being used by other products like Struts to construct java representation of config files. More importantly does it perform well for say an XML file of size say 5MB? Any indicators of performance of digester? thanks
digester is based on SAX2 model. I am sure that it is more faster than JAXB.
Originally posted by Pradeep Bhat: Is Digester similar to JAXB?
Digester is like SAX2 (it is based on sax2 actually). It is better used to read a xml document. While JAXB is a JSR which is based on xml schema for the mapping. And you can read or write xml document using JAXB. I have used both of them. And found that Digester is faster than JAXB RI in reading.