Re: [Simple-support] Element 'name' is also a path name in class ...
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2014-01-12 05:48:37
|
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
|