Hi all,
I'd like to read in an XML file which has got two lists of the same elements.
Now I renamed the list elements to have different names. IMHO the XML file became more ugly, but nevertheless at least it now it works. I think this is a bug in Castor, isn't it?
My new mapping file looks now as follows:
<field name="inputParameters" collection="arraylist" type="teuto.trails.trail.ParameterDeclaration">
<bind-xml location="input-parameters" name="declare-input-parameter"/>
</field>
<field name="returnParameters" collection="arraylist" type="teuto.trails.trail.ParameterDeclaration">
<bind-xml location="return-parameters" name="declare-return-parameter"/>
</field>
The bind-xml name attributes are now unique. It seems to me Castor ignores the location attribute when unmarshalling.
Shall I file a bug report? I am able to marshal a XML file with my first mapping file. This file has got the structure I expect it to have. But Castor is unable to correctly unmarshal the written file.
Best regards Matthias
-- Matthias Wuttke [EMAIL PROTECTED]
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
