Re: [Simple-support] Element 'name' is also a path name in class ...
Brought to you by:
niallg
|
From: Boris G. <bo...@gl...> - 2014-01-12 14:06:07
|
Thank you for quick replay, that worked...
Also i like to point out that
@Path("name")
@Text
String name
has to be before
@Path("name")
@Attribute
String id;
other way it doesn't work.
Thank you
Boris
On 1/12/2014 12:48 AM, Niall Gallagher wrote:
> The below should work
>
> @Path("name")
> @Text
> String name
>
> @Path("name")
> @Attribute
> String id;
>
> Niall
>
>
> --------------------------------------------
> On Sat, 11/1/14, Boris Gligich <bo...@gl...> wrote:
>
> Subject: [Simple-support] Element 'name' is also a path name in class ...
> To: sim...@li...
> Received: Saturday, 11 January, 2014, 6:31 PM
>
> Hi
>
> Thank you for this great frame work, but i have question,
> how do i get
> id? they way i get fails with error
>
> <user>
>
> <username>user</username>
>
> <password>password</password>
> <name id="3">My
> Name</name>
> </user>
>
> and class
>
> class user{
>
> @Element
> String username;
>
> @Element
> String password;
>
> @Element
> String name ;
>
> @Attribute
> @Path("name")
> public String id;
>
> }
>
> Thank you
>
> Boris
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud
> For
> Critical Workloads, Development Environments &
> Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Simple-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simple-support
>
|