Hi all, I have very nearly got Castor XML to do exactly what I want but
I have one last problem. When I use both auto-naming="deriveByClass" and
the location attribute, my XML gets marshalled perfectly, something like
this: 

Code:   

<element> 
    <location-element> 
        <myPolymorphicField> 
            <specificField1>Some data</specificField1> 
            <specificField2>Some data</specificField2> 
        </myPolymorphicField> 
    </location-element> 
</myWrapperClass> 
        

But when I unmarshall the XML I get the error message "Unable to find
FieldDescriptor for 'myPolymorphicField' in ClassDescriptor of
location-element". 

If I take out either one of the auto-naming or location attributes from
the mapping file it works but then the XML does not validate against the
schema I am using. It's only when I use both together that I get the
error. 

Any ideas? I looked in Bugzilla and found this open bug
(http://bugzilla.exolab.org/show_bug.cgi?id=1512) but it doesn't seem to
be exactly the same thing. 

Thanks in advance, 

Dan.

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

Reply via email to