dom4jb: A JavaBean XML-Data-Binding Utility

dom4jb is a XML-Data-Binding library for the dynamic mapping of JavaBean TM -based object graphs into a tree-based XML representation. This library makes it possible to map object graphs at runtime into XML document models (e.g. DOM). In contrast to other XML-Data-Binding frameworks, this mapping takes place incremental. That is, the tree-representation becomes not necessarily fully build up, but is limited to the most necessary.

The goal is to map large object graphs in an efficient way into a DOM or XPath-Models, so that these can be transformed by means of XSLT. Therefore the object graph will be maped into a XML representation at runtime, whereas the creation of the corresponding node object of the tree representation is deferred as long as possible. Currently two XML documents models are supported:

  • DOM

    dom4jb comes with an implementation of a readonly subset of the DOM-Level 2 (core) interfaces. This makes it possible to use dom4jb in conjunction with a wide variety of XSLT-processors supporting the TrAX-API.

  • Saxon XPath

    For the efficient use of dom4jb in conjunction with the Saxon XSLT-processor , the Saxon specific XPath model is supported. Many XSLT processors (i.e. Xalan or Saxon) are transferring the DOM tree into an internal XPath representation before the actual transformation is done. So that an incremental mapping would give you no performance improvement. To avoid this, the Saxon XPath interfaces are implemented.

Download dom4jb

Download the binary or source distribution from here