1. A method for automatically generating code for converting data from stored procedures to an XML format, comprising the steps of: (a) providing a wizard for generating code for a wrapper, wherein the wizard: (a 1 ) receives a selection of a stored procedure, (a 2 ) determines an output data format for the selected stored procedure, and (a 3 ) obtains a definition of an Extended Markup Language (XML) document, wherein the definition comprises which portions of the output data format to include in the XML document; and (b) generating the code for the wrapper by the wizard for calling the selected stored procedure and for generating the defined XML document.