You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Kosaraju, Sangeeta" <Sa...@nwa.com> on 2007/10/24 22:04:04 UTC
XML Ouput from IBatis
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.
Re: XML Ouput from IBatis
Posted by Brandon Goodin <br...@gmail.com>.
Just use XStream - http://xstream.codehaus.org/
It's much easier than any other solution. Get the object from iBATIS pass
them into XStream and get your xml.
Brandon Goodin
On 10/25/07, Kosaraju, Sangeeta <Sa...@nwa.com> wrote:
>
> Actually I want to get the results in xml and then show the xml on my jsp
> with the help of xstl.
> I do not like to save the xml.
>
>
> ------------------------------
> *From:* Giovanni D'Addabbo [mailto:giovanni.daddabbo@gmail.com]
> *Sent:* Thursday, October 25, 2007 3:58 AM
> *To:* user-java@ibatis.apache.org
> *Subject:* Re: XML Ouput from IBatis
>
> 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 <ch...@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
>
Re: XML Ouput from IBatis
Posted by Giovanni D'Addabbo <gi...@gmail.com>.
ok...
if i've understand what you mean to do...
if you work with xslt you need to save the xml output (in temp files for
example) then you can work with and when have you finished delete it from
server (so we have an handful of file accesses) or simply you can use
arraylists of objects to work with (no file access)
byeeeeeeeeezzzzzzzzzzz
2007/10/25, Kosaraju, Sangeeta <Sa...@nwa.com>:
>
> Actually I want to get the results in xml and then show the xml on my jsp
> with the help of xstl.
> I do not like to save the xml.
>
>
> ------------------------------
> *From:* Giovanni D'Addabbo [mailto:giovanni.daddabbo@gmail.com]
> *Sent:* Thursday, October 25, 2007 3:58 AM
> *To:* user-java@ibatis.apache.org
> *Subject:* Re: XML Ouput from IBatis
>
> 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 <ch...@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
>
--
Giovanni D'Addabbo
UIN: 22490534
RE: XML Ouput from IBatis
Posted by "Kosaraju, Sangeeta" <Sa...@nwa.com>.
Actually I want to get the results in xml and then show the xml on my
jsp with the help of xstl.
I do not like to save the xml.
________________________________
From: Giovanni D'Addabbo [mailto:giovanni.daddabbo@gmail.com]
Sent: Thursday, October 25, 2007 3:58 AM
To: user-java@ibatis.apache.org
Subject: Re: XML Ouput from IBatis
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 <ch...@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
Re: XML Ouput from IBatis
Posted by Giovanni D'Addabbo <gi...@gmail.com>.
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 <ch...@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 <lm...@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 <Sa...@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
Re: XML Ouput from IBatis
Posted by Chetan Nayak <ch...@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 <lm...@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 <Sa...@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.
>
Re: XML Ouput from IBatis
Posted by Larry Meadors <lm...@apache.org>.
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 <Sa...@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.