From user-java-return-11029-apmail-ibatis-user-java-archive=ibatis.apache.org@ibatis.apache.org Fri Mar 16 06:26:17 2007 Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 96496 invoked from network); 16 Mar 2007 06:26:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2007 06:26:16 -0000 Received: (qmail 43775 invoked by uid 500); 16 Mar 2007 06:26:21 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 43721 invoked by uid 500); 16 Mar 2007 06:26:21 -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 43710 invoked by uid 99); 16 Mar 2007 06:26:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 23:26:21 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of clamey@localmatters.com designates 216.241.189.144 as permitted sender) Received: from [216.241.189.144] (HELO mailhost01.ad.corp.localmatters.com) (216.241.189.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Mar 2007 23:26:10 -0700 Received: from 10.203.252.10 ([10.203.252.10]) by mailhost01.ad.corp.localmatters.com ([10.200.4.32]) with Microsoft Exchange Server HTTP-DAV ; Fri, 16 Mar 2007 06:21:59 +0000 Received: from dev02lt by webmail.localmatters.com; 16 Mar 2007 00:25:43 -0600 Subject: Re: ibatis to return xml instead of arraylist (of hashmap). From: Chris Lamey Reply-To: clamey@localmatters.com To: user-java@ibatis.apache.org In-Reply-To: <4b1b8c090703151936j3d72f725sb8db2201a1ddcd2@mail.gmail.com> References: <4b1b8c090703151936j3d72f725sb8db2201a1ddcd2@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Local Matters, Inc. Date: Fri, 16 Mar 2007 00:25:43 -0600 Message-Id: <1174026343.3250.28.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 (2.6.3-1.fc5.5) X-Virus-Checked: Checked by ClamAV on apache.org xstream is pretty flexible, take a look at the Converter examples to see how you can tweak the output. If what you want is vastly different than your object model, you can either create a adapter object model that takes data from iBATIS or use some kind of xml transform. We use stx, which is a small project, but the app is really fast and light on memory, for streaming xml transforms. When you've got gigs of xml, any kind of in-memory tree transform (xslt) won't do. Cheers, topher On Thu, 2007-03-15 at 19:36 -0700, netsql wrote: > In the past I allways returned arraylist of hashmap and that works > EXCLENT. > > I now want to return xml. I saw some notes on xstream and it works but > not so well, I do not like the xml it makes. > > Is there snipets or more ideas to help me? > > tia, > .V