Apache XMLBeans is a powerful tool for reading, writing and updating XML files. XMLBeans dynamically creates Java classes based on an XSD Schema. This makes it powerful and easy to use, however can make it more complicated to integrate into OSGi based applications, such as Adobe CQ, as the XML Element to Java Class mapping uses the Java Classloader.
This guide shows you how to integrate XMLBeans in your Adobe CQ application.
Step 1: Install XMLBeans Bundle
Download and install org.apache.servicemix.bundles.xmlbeans-2.4.0_5.jar. This JAR was created by the Apache ServiceMix project to wrap XMLBeans in a OSGi Bundle. The easiest way to automatically deploy the jar into Adobe CQ is to include it in the install folder of your application. You can also use the Felix console to deploy …