Search code examples
javaapache-commons-digester

can anyone tell me whats the use of having digestor-rules.xml


I know it is used for parsing xml data and converting them into objects.Does that make any sense in using this in an enterprise application. Please help me .


Solution

  • Commons Digester is a bit old-fashioned, but it still has its uses.

    In cases where you have large streams of XML, it can be impractical to read it all into a binding framework like JAXB, due to memory constraints. Commons Digester allows you to build objects from the XML stream on the fly. Note, however, that JAXB also has some support for XML streaming (see here), and while it's not ultimately as flexible as Commons Digester, it's probably going to be easier to live with.