JAXB can automatically create classes based on an XML schema (if you have one for the XML source). At run time, it can convert an XML document to a POJO representing XML. It is declarative in that you can customize the display of the schema for the class a little.
If I understand your task correctly, this is pretty much used by the JAXB use case (although it can do other things). This is part of Java 1.6 (maybe 1.5 too?), In packages: javax.xml.bind. *
13ren
source share