XMLBeans is a technology that binds XML to Java types for easy accessibility.
The XMLBeans API has the capability to reflect into the XML schema itself through an XML Schema Object model, and a cursor model allows developers to traverse the full XML infoset. Additionally, there is support for XML DOM, offering even more flexibility for working with XML data.
Getting started with XMLBeans is a straightforward process. First, simply install the software, then compile your schema and jar your Java types by using the scomp command. Once your schema is compiled and your Java types are generated, you can easily bind your XML instance to the schema using the generated JAR file.
An example of using XMLBeans in action involves binding an XML instance to the Java types representing your schema. This example uses types generated from an employees schema, and showcases how to get and print different pieces of the XML instance.
XMLBeans has recently undergone some updates, including an update to the latest XMLSchema.xsd, support for SaxonB-8.6.1 (in place of SaxonB8.1), and XQuery external variable binding support. These enhancements ultimately make using XMLBeans even easier and more flexible for developers.
Version 2.4.0: N/A