Originally posted by Balachandar Nayak:
Out of these Parsers which one is good and why we need to go for it
(SAX, DOM, STAX,JAXP, Digester)
My understanding of the above mentioned stuffs.
SAX,DOM are two processing models within JAXP only.Even STAX is also included starting JAXP 1.3 that gets shipped with JDK1.5 onwards.
Digester is rule based parsing , specifically good for parsing of configuration files for projects and stuffs where you need rule based parsing and frequent changes to XML model.
I think JAXP 1.3 onwards validation process has be separated out from parsing , so you can use validation of it.
And regarding your other requirement , I think you need JAXB (google for castor) , or XMLBeans.
Hope this helps,