Unmaintained.
Devourer is simple streaming XML processing library written in Java taking advantage of modern XML parsing library and providing easy-to-use API, which is compatible with latest Java releases, i.e. Java 8 and its Project Lambda.
Devourer is heavily inspired by Apache Digester. Devourer essentially performs the same job as Digester, but it avoids heavy use of reflection (thus making your XML processing way faster) and it also uses StAX processing library instead of SAX, which leads to much simpler and easier to support architecture, as well as nearly effortless thread safety. Devourer also has minimal amount of runtime dependencies (only Google Guava library).
Devourer is present in Maven Central. You can add it to your Maven dependency list:
<dependency>
<groupId>org.bitbucket.googolplex.devourer</groupId>
<artifactId>devourer</artifactId>
<version>0.1</version>
</dependency>
See here for the user manual.
There are several points I think I should note about the library.
- Namespace support is far from adequate. Currently all namespace filtering must be done inside actions; also namespaces are mostly handled via prefixes, not real namespace identifiers. This should change in the nearest future.
- The library is not covered by automatic tests. This is also likely to change soon.
- Support for wildcards in element paths is completely absent. This would be very nice feature to have, and I may add it one day.