Hi Dennis,

Thank you for the response.

Say I have below class :

class Furniture
{
   String legs;
   int noOfLegs;
}

When serializing this class into xml using jibx binding xml and when
there are values for member variables legs and noOfLegs then usually
xml 'll be created like this :

<Furniture>
      <legs>FOUR</legs>
      <noOfLegs>4</noOfLegs>
</Furniture>

but say when there are no values for member variables legs and
noOfLegs then I want the xml to be created like this :

<Furniture>
      <legs></legs>
      <noOfLegs></noOfLegs>
</Furniture>

Now how can I configure my binding.xml to achieve above ? Without
writing any custom (un)marshaller code is it possible and I find the
attribute default="" for values element is neither working for my
purpose.  Please suggest ...


Thanks & Regards,
Kumar.


-------------------------------------------------------
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