Class DB2XMLWriter

java.lang.Object
org.frankframework.util.DB2XMLWriter

public class DB2XMLWriter extends Object
Transforms a java.sql.Resultset to a XML stream. Example of a result:

 <result>
     <fielddefinition>
         <field name="FIELDNAME"
             type="columnType"
             columnDisplaySize=""
             precision=""
             scale=""
             isCurrency=""
             columnTypeName=""
             columnClassName=""/>
         <field ...../>
     </fielddefinition>
     <rowset>
         <row number="1">
             <field name="FIELDNAME">value</field>
             <field name="FIELDNAME" null="true"></field>
             <field name="FIELDNAME">value</field>
             <field name="FIELDNAME">value</field>
         </row>
     </rowset>
 </result>
 
Note: that the fieldname and columntype are always capital case!
Author:
Johan Verrips