Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 6926 invoked from network); 25 Oct 2007 08:58:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 08:58:30 -0000 Received: (qmail 81804 invoked by uid 500); 25 Oct 2007 08:58:12 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 81790 invoked by uid 500); 25 Oct 2007 08:58:12 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 81779 invoked by uid 99); 25 Oct 2007 08:58:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 01:58:12 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of giovanni.daddabbo@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 08:58:16 +0000 Received: by nf-out-0910.google.com with SMTP id 4so353292nfv for ; Thu, 25 Oct 2007 01:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=f/ZnVr9dCedPo/gjAHbFE90z9cgXuGs6OjGkUZX61nQ=; b=PkeumSrjrl+De6MvkLR8ZUuuCo4WRrg1llotIwfYRhRbFtYAT/k5fUnK13XBE4NZrtY/9eVxRlPk7xXT2gm0KnLi8Hnics0+YAWFyt4RWRmefEnAEx0A1iMJsl+EW+hC4H493ifhXxnP8LJ7sJSOCIw7xCN/9NndGVSzB8AroDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=flBtMZrdwc6zssVFOMJA6/TGdLXMsUSavGCF3qLj4juy76vRjsR2QDXIOydp2+nSykBW/PshnT+2fxnjtf68Kw+rhbROLILUrXjDhGq/9uBCQ/V4VSTU3y7eNGI0uGqAVo8KG+JtWsRHGwtFLi+d6S19P/PA34Qj++7oL5077iA= Received: by 10.78.140.17 with SMTP id n17mr1130814hud.1193302674329; Thu, 25 Oct 2007 01:57:54 -0700 (PDT) Received: by 10.78.32.3 with HTTP; Thu, 25 Oct 2007 01:57:54 -0700 (PDT) Message-ID: <430050390710250157t439fd0b3x6b0821f0cc506ec2@mail.gmail.com> Date: Thu, 25 Oct 2007 10:57:54 +0200 From: "Giovanni D'Addabbo" To: user-java@ibatis.apache.org Subject: Re: XML Ouput from IBatis In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_325_897095.1193302674316" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_325_897095.1193302674316 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline i suggest to work with ibatis + jdom for the best xml support so for example you can have an object (or a list of objects), then you can define xml document structure easily with jdom and then you can save all as a well formed xml with an handful of code. byeeeeezzzzzzz 2007/10/25, Chetan Nayak : > > Sangeetha , > > I have used it in my project ,this is what i do.I will > give you a sample query > > > > > > When you call IBATIS API'S ,Call the queryForListing method ,It return me > the result as String object ,But i kinda feel it's slow. > > > Thanks > Chetan > > > > On 10/25/07, Larry Meadors wrote: > > > > The XML support in iBATIS is kinda...limited. I'd suggest using > > something like XStream to generate XML from java objects instead. It's > > pretty much dirt simple. > > > > Larry > > > > > > On 10/24/07, Kosaraju, Sangeeta wrote: > > > > > > > > > Hi everyone, > > > > > > I want to know if anyone has ever worked with IBatis and got the XML > > as > > > output. > > > The documentation is very brief about it. > > > > > > It would be a great benefit for me if you can share the info. > > > > > > Thanks. > > > Sangeeta. > > > > -- Giovanni D'Addabbo UIN: 22490534 ------=_Part_325_897095.1193302674316 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline i suggest to work with ibatis + jdom for the best xml support
so for example you can have an object (or a list of objects), then you can define xml document structure easily with jdom and then you can save all as a well formed xml with an handful of code.
byeeeeezzzzzzz

2007/10/25, Chetan Nayak <chetannayaks@gmail.com>:
Sangeetha ,
 
                 I have used it in my project ,this is what i do.I will give you a sample query
 
 
 
<select id="queryName" parameterClass="java..util.Map" resultClass="xml" xmlResultName="PERSON">
select firstname from person
</select>
 
When you call IBATIS API'S ,Call the queryForListing method ,It return me the result as String object ,But i kinda feel it's slow.
 
 
Thanks
Chetan


 
On 10/25/07, Larry Meadors <lmeadors@apache.org > wrote:
The XML support in iBATIS is kinda...limited. I'd suggest using
something like XStream to generate XML from java objects instead. It's
pretty much dirt simple.

Larry


On 10/24/07, Kosaraju, Sangeeta <Sangeeta.Kosaraju@nwa.com > wrote:
>
>
> Hi everyone,
>
> I want to know if anyone has ever worked with IBatis and got the XML as
> output.
> The documentation is very brief about it.
>
> It would be a great benefit for me if you can share the info.
>
> Thanks.
> Sangeeta.




--
Giovanni D'Addabbo
UIN: 22490534 ------=_Part_325_897095.1193302674316--