I think you will almost certainly have to use a custom unmarshaller. ------------------------------------------------------------------- Dan Cooperstock, Senior Software Developer, Quest Software 260 King St. E., Toronto ON Canada M5A 4L5 [EMAIL PROTECTED] 416-933-5165 With Quest Software, you get more ... more performance, more productivity, more value from your IT investments.
Visit www.quest.com to learn more. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rueegg Alexander Sent: Wednesday, June 07, 2006 11:47 AM To: [email protected] Subject: [jibx-users] Mapping attributes to one collection Hi all, i have problems dealing with the following situation. I have a simple xml file like this: <tagA name="myName"> <tagB attributeA="6000" attributeB="200" attributeC="5" attributeD="100"/> </tagA> 'tagA' should be mapped to class 'A' and the attributes of 'tagB' should be mapped to a collection of a class 'B' (so each attribute should result in an instance of class 'B'): public class A { public String name; public Collection<B>; { public class B { public String field1; public Integer field2; } How can I achieve this? I searched the mailing list archive but could not find an answer. thank you in advance. Alex _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
