Using Quick to Read and Write Objects in XML

The Quick library, from http://www.jxml.com is not as simple as JOX, but it's also not as simplistic. Quick lets you map XML data to Java classes and fields, but doesn't require the Java classes to be beans. Although JOX handles a somewhat limited set of Java classes (only beans), Quick handles any kind of Java class, and includes some data structures that JOX can't handle, such as maps (hash tables).

To achieve this tremendous flexibility, Quick requires you to create a file that describes the structure of your XML document and how it maps to Java. The file format is called QJML and is very simple to understand. Listing 24.10 shows a QJML file that maps the Person class to the format described in ...

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.