I am trying to persist XML data in DB2 using ibatis. I have declared my domain object's attribute corresponding to this xml dataType as Document. Is this correct? With Jdbc and other things java.sql.SQLXML is instantiated in different way. Can anyone answer this!!Thanks in Advance!