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].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.