There's a unit test showing how to use an XML input parameter, search in SVN a unit test named TestXMLParameter using the store procedure SelectAccountViaXML and have a look for inspiration.
Here's a Java XML TypeHandler http://opensource.atlassian.com/confluence/oss/display/IBATIS/Type+Handler+Callbacks -- Cheers, Gilles

