Skip to content

Category Archives: Xml

Generating XML Schema and Classes using JaxB and Maven pom

Xml Binding via JaxB is a standard way to work with Xml objects in Java 6 and beyond. While there are ant tools and cmd line utilities to automate this, externalizing the automation in a dedicated maven module, along with nice wrapper methods for a fluent api would be nice. Below are the steps to [...]

Marshalling and Unmarshalling Xml – Step by Step tutorial with Castor in 10 mins

If you want a simple way to marshall / unmarshall your pojo -> Xml files, Castor could be very handy. Before reading the docs on the setup and overview and breaking your nerves on it’s rich feature set, lets get going in less than 10 minutes. Castor is extremely powerful but if your purpose is [...]