ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franck Silvestre <f.silves...@fylab.com>
Subject customizing XML output
Date Mon, 14 Feb 2005 17:11:57 GMT
I'm completely new to ibatis .
I play with the ability to get XML output.

If I use in my sql map file a resultMap with the attribute class set as 
"xml" I get a String for each item of  the result list.
Is it possible to customize the root element name of  fetched items ?
The default root element name is "result". I tried to use the 
"xmlResultName" of the "select" element but it did nothing.

Second question : is there a way to customize the structure of the xml 
output (for exemple tell  a fetched value to be an attribute of  an 
element) ?

Thanks in advance

View raw message