Hello All, I
have a structure of XML like pasted below. When I try to parse this back to
java object using jibx. I get an exception stating “duplicate element at
source”. This is caused by the repeatation of the flight element at the
bottom of the xml. I am also pasting below the jibx binding snippet for your
reference. Kindly let me know what can be done to avoid this exception. Thanks
a lot. ////////////////////////////////
Binding Snippet //////////////////////////////////////////////////////////// <structure name="Itinerary"
field="itinerary" flexible="true"
usage="optional" ordered="false"> <collection field="itineraryFlights" usage="optional"
flexible="true"/> <collection field="itineraryCars"
item-type="com.vayama.businessobject.ItineraryCar"
usage="optional" flexible="true"/> <collection field="itineraryHotels"
item-type="com.vayama.businessobject.ItineraryHotel" usage="optional"
flexible="true"/> <collection field="insurances"
usage="optional" flexible="true"/> </structure> /////////////////////////////////////////////////////////XML
/////////////////////////////////////////////////////// <Itinerary> <Flight source="1A" AssociationID="F0000"
OriginDestinationID="O00"> ……. </Flight> <Flight source="1A" AssociationID="F0010"
OriginDestinationID="O01"> …….. </Flight> <Car source="1A" AssociationID="C0"> …… </Car> <Hotel>
…… </Hotel> <Hotel source="1A" AssociationID="F71" SellType="ACP"> ……. </Hotel> <Hotel > …… </Hotel> <Flight > …… </Flight> </Itinerary> Pradeepta |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users