Hi,

I tried searching at other places and forums but couldn't find anything.



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;

}



I don't want to creat a new class for Address as my actual XML file has
more than 200 elements with such behavior.



In the binding XML, I would like to have below,



  <mapping name="person" class="com.model.Peson" ordered="false">
 <value name="name" field="name"/>

 <value name="street" field="street"/>

 <value name="city" field="city"/>

</mapping>



I am switching from Castor which let you use Location attribute for
specific nested field, for example, <field name="name" location="Address"
type="element"/>



How do I map Address in jibx?



Thanks in advance..
------------------------------------------------------------------------------
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