hello,

  i'm sure i'm missing something simple but this is not clear to me from
  the documentation.

  example:  i have a Shipment object with two address fields:
    origin and destination

  both fields are of the same type:  Address

  i want the xml element names corresponding to each field to be unique:
    origin and destination
  as in:

  <shipment>
    <origin street="" city="" state="" zip="" />
   <destination street="" city="" state="" zip="" />
  </shipment>

  in the binding file, i want the address type to be defined as a global
 mapping (that is, not using an inline structure element).

jibx forbids the usage of the "name" attribute in the "structure" element
when referencing a global mapping element.


  so my understanding is that jibx uses the Address type mapping's
  name attribute for the element name of each field.  this forces both
  origin and destination to have the same tag name.

  i'd like to be able to specify the binding for shipment as follows:
    <mapping class="Shipment" name="shipment">
     <structure name="origin" field="origin" />
     <structure name="destination" field="destination" />
   </mapping>

  but i can't because name is forbidden.  what am i missing?

thanks, eitan


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to