You could also do this by using a get-method for the collection. If the indexed item of the collection is null, have the get method instead return an instance (could be a singleton) of a class that you bind to your <null/> element. If you used an add-method for unmarshalling you could do the same sort of thing there (check if it's an instance of your null-class, and if so just store a null).
This would be a good thing to add to the Wiki, whichever way you do it.
- Dennis
Guillaume Pothier wrote:
Hi,
Is there a way to provide a binding definition for null? For instance, if a collection contains null values, I would like to bind them to a <null/> element.
Guillaume
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users
