...Yes, the Unmarshaller will return different types of objects. The root element of a received document can be anything that's defined by a global <mapping> in your binding (a <mapping> that's a child of the <binding> element, rather than nested inside another <mapping>). As long as you can use a single binding definition for all the types of objects/XML you want to handle you're good.
My question concerns Unmarshalling documents when the contents are unknown. My application sends various kinds of XML packets over a network. When marshalling data its simple to tell which marshaller to use because you have the object on hand.
When receiving the packets how should I tell what kind of object they contain?
Can an Unmarshaller spit out different Objects depending on the document used as input?
If you need more flexibility, the binding tutorial gives an example (at the end) of using a custom frontend to the unmarshalling process to look at the root element and attributes and select the appropriate binding definition on that basis.
- Dennis
-- Dennis M. Sosnoski Enterprise Java, XML, and Web Services Training and Consulting http://www.sosnoski.com Redmond, WA 425.885.7197
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
