Hi Harald,

If i use JSON then i think i need to convert first my xml into json as i am
getting xml from my server response. And then i will have to map this JSON
with java pojo. then it may take more time for conversion of xml into json.
My critical issue is the time for taking xml and representing it into front
end in the minimum possible time.



On Tue, Aug 10, 2010 at 8:08 PM, Harald Pehl <[email protected]>wrote:

> Piriti is the only XML mapper for GWT I know. So I cannot say if it
> performs better than XYZ. If performance is critical in your
> application, consider to use JSON as it it more lightweight and
> integrates in GWT.
>
> - Harald
>
> On 10 Aug., 11:05, Deepak Singh <[email protected]> wrote:
> > Thanks harald. I hope the issue will be resolved now.
> > But do you suggest using piriti is a better solution for xml mapping to
> pojo
> > which can give fast result. Or is there anything else i should take up
> for
> > xml to java mapping.
> > Pls suggest.
> >
> > Deepak
> >
> > On Tue, Aug 10, 2010 at 1:04 PM, Harald Pehl <[email protected]
> >wrote:
> >
> >
> >
> > > You missed one more dependency: Google GIN -
> > >http://code.google.com/p/google-gin/
> >
> > > Please take a look athttp://
> code.google.com/p/piriti/wiki/GettingStarted
> > > - Prerequisites. There you can see all dependencies necessary for
> > > Piriti.
> >
> > > - Harald
> >
> > > On 9 Aug., 20:47, Deepak Singh <[email protected]> wrote:
> > > > Hi Harald,
> >
> > > > Thanks for your guidance.
> >
> > > > I did all these things as stated by you. I included the jar file of
> > > totoe.
> > > > Reads xml through clientBundle. But while compiling i get the
> following
> > > > error
> >
> > > > Loading inherited module 'name.pehl.piriti.Piriti'
> > > >    Loading inherited module 'com.google.gwt.inject.Inject'
> > > >       [ERROR] Unable to find 'com/google/gwt/inject/Inject.gwt.xml'
> on
> > > your
> > > > classpath; could be a typo, or maybe you forgot to include a
> classpath
> > > entry
> > > > for source?
> > > >    [ERROR] Line 8: Unexpected exception while processing element
> > > 'inherits'
> > > > com.google.gwt.core.ext.UnableToCompleteException: (see previous log
> > > > entries)
> > > > at
> >
> > >
> com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:239)
> > > > at
> >
> > >
> com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin(ModuleDe
> > > fSchema.java:407)
> > > > at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> > > > at java.lang.reflect.Method.invoke(Unknown Source)
> > > > at
> >
> > >
> com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:22
> > > 4)
> >
> > > > So the compilation failed.
> >
> > > > I have injected these two in .gwt.xml
> > > > <inherits name="name.pehl.totoe.Totoe" />
> > > > <inherits name="name.pehl.piriti.Piriti" />
> >
> > > > Do i need to include anything else in the project ?
> >
> > > > Thanks
> > > > Deepak
> >
> > > > On Mon, Aug 9, 2010 at 7:03 PM, Harald Pehl <
> [email protected]
> > > >wrote:
> >
> > > > > Piriti relies on Totoe. Totoe is an alternative XML parser with
> > > > > namespace support. So please make sure you have the relevant JAR
> file
> > > > > in the classpath / eclipse project. Totoe is available under
> > > > >http://code.google.com/p/totoe/.
> >
> > > > > Having your POJO in the shared folder is no problem. Just make sure
> > > > > the folder is included in your module definition. Having the XML in
> > > > > the shared folder seems a little bit weired to me. Normally you
> > > > > receive the XML in response to some request you made. Anyway if you
> > > > > just want to test Piritis XML mappings, you can load the XML using
> a
> > > > > ClientBundle:
> >
> > > > > ----------------------------------------------------
> > > > > public interface FooResources extends ClientBundle
> > > > > {
> > > > >    FooResources INSTANCE = GWT.create(FooResources.class);
> >
> > > > >    @Source("foo.xml")
> > > > >    public TextResource fooXml();
> >
> > > > >    ...
> > > > > }
> > > > > ----------------------------------------------------
> >
> > > > > Make sure foo.xml is in the same package as FooResources. Then you
> can
> > > > > get the XML using
> > > > > FooResources.INSTANCE.fooXml().getText()
> >
> > > > > - Harald
> >
> > > > > On 9 Aug., 14:52, Deepak Singh <[email protected]> wrote:
> > > > > > Any suggestion pls .....
> >
> > > > > > On Mon, Aug 9, 2010 at 2:02 AM, Deepak Singh <
> > > [email protected]
> > > > > >wrote:
> >
> > > > > > > Hi All,
> >
> > > > > > > I am using piriti 0.4.1 for mapping XML to POJO's with gwt 2.1
> m2.
> > > > > > > For learning purpose, i added on sample xml file to shared
> folder
> > > and
> > > > > > > created the java classes in shared folder only. But these java
> > > classes
> > > > > show
> > > > > > > the following error
> > > > > > >  *The type name.pehl.totoe.client.Element cannot be resolved.
> It is
> > > > > > > indirectly referenced from required .class *
> > > > > > > * files*
> > > > > > > *
> > > > > > > *
> > > > > > > I am using eclipse 3.5 and have added jar files in build path
> > > through
> > > > > > > eclipse.
> > > > > > > I don't actually know what mistake in setting up the project i
> am
> > > > > doing.
> > > > > > > I am not using maven.
> >
> > > > > > > Pls let me know how to use piriti and is there any way to do
> > > mapping of
> > > > > xml
> > > > > > > to pojo.
> > > > > > > Is Piriti a better solution for fast result ?
> >
> > > > > > > Thanks
> > > > > > > Deepak
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to
> > > [email protected].
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs
> [email protected]><google-web-toolkit%2Bunsubs
> > > [email protected]>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > --
> > >  You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs
> [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to