Hi guys,

I've seen in the docs that I can specify that values contained within a
<structure> element can be set to be marshalled into attributes in the
resulting xml doc, like below:

<mapping class="..." name="parent" ... >
<structure name="child" field="..." value-style="attribute"/>
</mapping>

However, that is a bit limiting, because it implies that the <structure>
must be a child member of a class - the <mapping> element in the binding
definition.

Is there a way to define that <value> elements within a <mapping> will be
marshalled into attributes in the resulting xml ? Something like:

<mapping class="..." name="child" ... >
<value name=".." field="..." value-style="attribute"/>
</mapping>

That would bring down the total xml size, and allow me to use the "child"
class both as a contained member of the "parent" class, as well
as an independent class and use it on it's own.

Is this supported ? Perhaps I mis-read something in the documentation ?

Cheers,

Angel
O:]




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users
  • ... Άγγελος Καράντζαλης
    • ... Dennis Sosnoski
      • ... Άγγελος Καράντζαλης

Reply via email to