Hello.

I'm new to jibx and trying to create mapping for a collection of different
elements.
My root object is a Menu, that consists of MenuItems. Each MenuItem can be
either a link to a Service (contains the service code) or link to the next
Menu level (contains the next menu code and nested menuItems). Also each
MenuItem has its own unique code.

I'd like to parse/serialize something like this:

<menu>
  <menuItem code="MI1" service="SERV1"/>
  <menuItem code="MI2" menu="MENU1">
    <menuItem code="MI21" service="SERV11"/>
  </menuItem>
  <menuItem code="MI3" service="SERV2"/>
</menu>

I have an abstract class MenuItem, it has the 'code' field. And to classes
extending MenuItem: ServiceReference and MenuReference. But I'm failed to
compose the binding for it. Is it possible to parse this XML without custom
unmarshaller?
-- 

Best regards,
  -- Alexei Pomelov
------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to