Hello,
I'm trying to un~/marshal a HashMap.
This is a part of the xml-file. graphic-data is the hashmap.
..
- <graphic-data xsi:type="java:GUI.ImageAndPositionData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<img />
- <pos>
...
- <graphic-data xsi:type="java:GUI.ImageAndPositionData"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<img />
- <pos>
...
I get following exception if I unmarshal it:
ValidationException: element "graphic-data" occurs more than once.
(XMLFieldDesciptor: graphicData AS graphic-data){file: [not available]; line:
2; column: 540}
I know, I have to write a mapping file but I don't know what.
This is what I tried but it is not correct:
..
<class name="GUI.SaveData">
<field name="graphic-data" collection="map"
type="java.util.Map"/>
</class>
..
Can somebody give me an advise.
Cheers,
Katja
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev