yups I think u should look at your mapping file (incase u are using that).
for the below ur mapping shud look something like this -
<class name="B1">
<map-to xml="B1"/>
<field name="B" type="B">
<bind-xml name="B" node="element"/>
</field>
</class>
<class name="B2">
<map-to xml="B2"/>
<field name="B" type="B">
<bind-xml name="B" node="element"/>
</field>
</class>
<class name="B">
<map-to xml="B"/>
<field name=....>
.....
</field>
</class>
Anuj
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 05 December 2003 16:49
To: [EMAIL PROTECTED]
Subject: [castor-dev] Validation exception: element occurs more than
once
Hi,
I found parts of the following message in the mailing list archive, and it
describes exactly the problem I am facing. I have tried 0.9.5.2 and the
latest daily snapshot, but the result is still the same:
This does not work on unmarshalling:
<field name="B1" type="java.lang.String">
<bind-xml name="B" node="element" location="B1"/>
</field>
<field name="B2" type="java.lang.String">
<bind-xml name="B" node="element" location="B2"/>
</field>
xml:
<B1><B>blah</B></B1>
<B2><B>blah</B></B2>
I get:
ValidationException: element "B" occurs more than once.
Is there a way around this?
Thanks,
Jens
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev