Hi, I am still getting problems to write in english :-( , so I´ll try to explain wath my doubt is as short as possible. I have an incoming XML with this (resume) structure:
<client> <docNum/> <docIdentifier/> <PersonName/> <client/> And my classes are: class Doc{ public string number; public string type; } class Person{ public Doc document; public string name; } How can I, in my mapping, tell jibx to map some tags to one structure an some other tags to another structure? (note that in the XML all relevant tags come as childs of the same element). For now, i have this <binding name="Document"> <mapping name="client" class="pack.Doc" ordered="false" flexible="true"> <value name="docNum" field="number"/> <value name="docIdentifier" field="type"/> </mapping> </binding> <binding name="Person"> <mapping name="client" class="pack.Person" ordered="false" flexible="true"> <value name="PersonName" field="name"/> </mapping> </binding> And then, in the code, i unmarshall the same incoming XML with two different bindings (using the name of the binding) and fill the doc to the person manually; this is not an elegant solution... any suggestions?. Thanks. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users