Hello,
I have spend a couple of hours trying to figure out how to bind the
following XML into classes:
<request-set>
<request>
<create-user id="3">
<name>cedric</name>
<age>35</age>
</create-user>
</request>
<request>
<update-user id="3">
<status>1</status>
</create-user>
</request>
<request>
<update-user id="5">
<status>0</status>
</create-user>
</request>
</request-set>
...etc....
The problem here is that the element <request> may have different forms:
it can contain one and only on element <create-user> or <update-user>
.etc...
You can see that <request-set> can contain an unlimited amount of
<request> elements: This could be bind to a <collection> in the JiBX
bind file, but the problem is that the collection (ArrayList in the
underlaying class) in this case needs to contain different objects
(<create-user> or <update-user>) ... I am getting sooooooo confused
...
Some help on how to map my little XML would be greatly appreciated ...
Thanks!
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users