ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: customizing XML output
Date Mon, 14 Feb 2005 17:20:55 GMT
There's no way to customize the XML output.  You'll just need to use
either XSLT or some other means of transformation.  The xmlResultName
should work though.  Can you post an example of what you're doing?


On Mon, 14 Feb 2005 18:11:57 +0100, Franck Silvestre
<f.silvestre@fylab.com> wrote:
> 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
> Franck

View raw message