Client or server considerations

Java methods assemble and disassemble an XML document and reference or update its elements. You can execute these Java methods either on the client or on the server. When you map individual elements of an XML document to SQL data, in most cases, the XML document is larger than the SQL data. It is generally more efficient to assemble and disassemble the XML document on the client and transfer only the SQL data between the client and the server.