From: McMillan, DouglasC [mailto:[EMAIL PROTECTED]
Sent: Monday, March 27, 2006 11:38 AM
To: dev@xmlbeans.apache.org
Subject: Nil vs. Null
There have been several posts over the last few years about the handling of nil and null values. The part of it that I was never fond of was the assignment of nil to non-nillable elements when a null was passed, as it causes the resulting object to fail validation. The only workaround for this seems to be manual field by field testing for null assignments.
After doing this for a few projects, I got a little irritated and updated SchemaTypeCodePrinter to unset a non-nillable element when a null value is passed. Is there any chance of this being included in the next release of the code, and if so, how would I go about submitting it?
An alternative thought would be to make the functionality switchable using the command line options, since it only affects generated classes. Thoughts?
Professional squirrel. Closed course. Do not attempt.
_______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.