Something like the following should do the trick. [untested] <binding> <mapping name="request" class="uk.co.bigsoft.Request"> <value name="id" field="id"/> </mapping> </binding>
public class Request { private String id ; Request() { // } public void setId(String id) { this.id = id; } public String getId() { return id; } } Regards, David On Mon, 10 Nov 2008 J S <[EMAIL PROTECTED]> wrote: > Hello: > > I would like the following XML snippet: > > <request> > <id>foo</id> > </request> > > to be unmarshalled into an instance of java.lang.String, whose value is: foo > In other words, I'd like to be able to use java.lang.String as the > top level class to be used as the target for the unmarshalling. > > If this is possible, can you please suppy a sample jibx mapping file > to accomplish this? > > Thanks... > > > __________________________________________________________________ > Looking for the perfect gift? Give the gift of Flickr! > > http://www.flickr.com/gift/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users