|
Introduction Welcome to LXB4J, a Java library and API used for light-weight XML binding. The problem is that when working with large schemas, the overhead of managing this large number of classes might be problematic. LXB4J tries to solve this problem and create an easy to use, lightweight, 100% pure Java binding solution. How does it work?
LXB4J has a special compiler that reads XSD files and create binary representations of the schemas. Note that the original XSD file is not needed on runtime, only the binary format of this file. LXB4J will use Above that, LXB4J also has a very simple API to work with Documents and Elements, this API is written above
the W3C DOM API Requirements LXB4J is 100% pure Java and is developed over the Java 5.0 platform, so the first thing you have to make sure There is only one jar to use: lxb4j-{version}.jar Needed third party software:
General design notes To make things really easy for developers, a BoundedElement in LXB4J can have:
Note that a simple typed element and an attribute are both considered members, this means that adding or reading simple elements and attributes can be achieved using the same code. LXB4J identifies the member using the schema data provided with the BoundedDocument. The idea here is that working with simple typed element should be as easy and fast as adding attributes, and the developer should not deal with text nodes and DOM methods for that. See usage examples on the Short manual page and sample directory provided with the release. |
LXB4J is hosted on sourceforge.net |