Using JOX to Read and Write Objects in XML

Java Objects in XML (JOX) is a library that reads XML data into a Java bean and writes Java beans out to XML without using any additional configuration files. The idea is simple: When reading an XML file, you give JOX either a Java bean, or a Java class that can be instantiated as a bean, and JOX tries to map the XML elements underneath the root element to properties in the bean. You can get JOX from http://www.wutka.com/jox.html.

JOX applies a loose matching strategy by removing all dashes, dots and underscores from the XML element name and ignoring any capitalization in both the XML element and the property name. For example, JOX thinks of first-name and firstName as being the same (it thinks they're ...

Get Special Edition Using Java™ 2 Enterprise Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.