The ResultSet DOM Wrapper, implements the org.w3c.dom.Document interface to represent a JDBC result-set in a DOM tree.
The wrapper is read-only but since it implements the standard DOM interfaces it allows to use transformers such as Xalan to perform XSLT transformation / XPath queries on the SQL result-set.
If it was serialized, the resulting DOM tree would look like this piece of XML:
<ResultSet> <Row> <Cell name="name" dataType="type">value</Cell>... </Row>... </ResultSet>
Note that the ResultSetDocument hierarchy does not contain the actual result-set data and meta-data-- only references to row and column indices, therefore it is very memory efficient. However because of this, it requires that the result-set be created with 'scroll' capabilities.