Generating an XML Document with JAXB
Subject:   XML to Java?
Date:   2010-04-30 05:59:31
From:   sunilnambiar
The reverse is also possible, ie, you can generate Java code from XML. An opensource tool called trang can be used to generate XSD from XML. From the generated XSD, we can generate Java classes using xjc. Step by step instructions can be found here: