How do I use JAXB/XJC to convert an XML file to an object?
JAXB (JSR-222) implementations convert instances of Java classes (that may contain annotations) to/from XML. XJC (XML to Java Compiler) is a utility for generating those objects from an XML schema. It is included as part of the JDK since Java SE 6.
Exanple
Here is a link to my blog that demonstrates how to generate a Java model from an XML Schema:
- http://blog.bdoughan.com/2010/09/processing-atom-feeds-with-jaxb.html