Many projects read XML configuration files to provide initialization of various Java objects within the system. There are several ways of doing this, and the Digester component was designed to provide a common implementation that can be used in many different projects.
Basically, the Digester package lets you configure an XML -> Java object mapping module, which triggers certain actions called rules whenever a particular pattern of nested XML elements is recognized. A rich set of predefined rules is available for your use, or you can also create your own. Advanced features of Digester include:
User documentation is available as package descriptions within the
JavaDoc
API documents
. In particular, you should read the package description for
the org.apache.commons.digester package for detailed information
on using the package.
The Release Notes document the new features and bug fixes that have been included in this release.
The "examples" directory in the source code repository contains code which demonstrates the basic functionality. In particular, you should read the AddressBook example in the "api" subdirectory. You can view the examples directly from the Subversion repository via the web-based repository browser web site, or can use subversion to download the files.
For the FAQ and other digester-related information, see the Digester wiki page .
Digester 1.8 is a minor bugfix and maintenance release. A few small features have been added. New projects are encouraged to use this release of digester, but there is no urgency for existing projects to upgrade; Digester 1.7 has proven to be a stable release. See the release notes for more details.
The dependencies for Digester 1.8 are identical to the dependencies for Digester 1.7.
Digester has a dependency on Commons Collections . The dependency can alternatively be satisfied by including the latest BeanUtils releases (1.7 or above) (which includes the stable collections ArrayStack class necessary).
The recommended dependency set for Digester 1.8 is:
| Recommended Dependency Set | ||
|---|---|---|
| Digester | +Logging 1.1.x | +BeanUtils 1.7 |
Other compatible dependency sets for Digester 1.8 can be summarized as follows:
| Compatible Dependency Sets | |||
|---|---|---|---|
| Digester | +Logging 1.1.x | +BeanUtils 1.x | +Collections 2.x |
| Digester | +Logging 1.1.x | +BeanUtils 1.x | +Collections 3.x |
It is also possible to use Logging 1.0.x instead.
Please remember to verify the MD5 check sums.