Thanks. it worked!

On Thu, Feb 2, 2012 at 11:18 PM, Archie Cobbs <arc...@dellroad.org> wrote:

> On Thu, Feb 2, 2012 at 11:36 AM, Syd Davenport <findme...@gmail.com>wrote:
>
>> Here is my sample XML file
>>
>>  <person>
>>
>> <name>John</name>
>>
>> <address>
>>
>>    <street>El Camino</street>
>>
>>    <city>San Jose</city>
>>
>> </address>
>>
>> </person>
>>
>>
>>
>> My class:
>>
>> public class Peson {
>>
>> String name;
>>
>> String street;
>>
>> String city;
>>
>> }
>>
>
> Try something like this:
>
> <mapping name="person" class="com.model.Person" ordered="false">
>
>     <value name="name" field="name"/>
>     <structure name="Address">
>
>        <value name="street" field="street"/>
>        <value name="city" field="city"/>
>     </structure>
> </mapping>
>
> -Archie
> --
> Archie L. Cobbs
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to