Hi, just a couple of quick questions about XML mapping.

Firstly, can Castor map XML elements to inner classes (obviously they would have to be public static inner classes), or just to normal, top-level classes?

Secondly, what is the status of support for nillable elements? I know there is something in Castor (maybe just in the CVS version?), because I've been reading through the source and bug reports and have seen some discussion about it. Can I map a null field to a nil element like this:

        <myElement xsi:nil="true" />

And on a related note, if I have a field mapping like this:

<field name="myField" required="false"><bind-xml location="myWrapper"></field>

I get the following fragment when myField is null:

        <myWrapper />

Can I get Castor to omit the myWrapper part, which doesn't map to a field, if there's nothing in it?


Thanks,

Dan.

--
Daniel Dyer
E-Mail: [EMAIL PROTECTED]
WWW: http://www.footballpredictions.net
AIM: danielwdyer / MSN: [EMAIL PROTECTED]



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to