This section uses the orders table to illustrate mapping between SQL data and XML ResultSet documents.
In “Composing a ResultSet XML document from the SQL data”, we generate an XML ResultSet document from the SQL data. We assume that we are the originator of the XML ResultSet document. We use the resulting XML ResultSet document to describe the ResultSet DTD.
In “Decomposing the XML ResultSet to SQL data”, we re-generate SQL data from the XML ResultSet document. We assume we are the recipient of the XML ResultSet document.