Hi,

> But would it be fast enough compared to RPC ?

AFAIK, speed will wildly vary between browsers. IMHO you're better off
parsing the xml server-side and returning a java object to your
client. plus you get to use awesome frameworks like XStream:
http://xstream.codehaus.org/

In our GWT applications we make heavy use of REST calls that return
xml. That xml is then parsed with xstream and it can be as simple as:

XStream xstream = new XStream();
MyObject object = (MyObject)xstream.fromXML(myXmlRestResponse);

Hope that helps,

Salvador

On 14 mai, 13:11, Rohit Vadera <rohitvad...@gmail.com> wrote:
> Ok i gottcha.
>
> But would it be fast enough compared to RPC which will use SAX for
> parsing and then returning the data structure of values in collection.
> Does it really depends on XML size to choose between GWT API or SAX on
> server??
>
> Thoughts!!!!!
>
> On May 14, 3:33 pm, Paul Robinson <ukcue...@gmail.com> wrote:
>
> >http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
>
> > abhiram wuntakal wrote:
> > > I dont think so u can do any such operations on the client side. You
> > > can rather use the file upload widget, transfer the code to the sever
> > > side and make use of simple File Read opeartions to read the contents
> > > of the XML file. Then you can bring back this data and display it on
> > > the client side.
>
> > > hope this helps.
>
> > > regards,
> > > Abhiram
>
> > > On Thu, May 14, 2009 at 3:50 PM, Pints <rohitvad...@gmail.com
> > > <mailto:rohitvad...@gmail.com>> wrote:
>
> > >     Hi,
>
> > >     Can any share the ideas that how can i read XML on client in GWT?
>
> > >     thanks,- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to