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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.