The package jcs.resultsets contains classes that:

The class ResultSetXml is a subclass of the JXml class that provides specialized methods for SQL result sets.

These classes are convenient in themselves, and they also serve as examples of translating between SQL data and XML documents.