O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required