users@jaxb.java.net

unmarshalling nested complex type elements

From: Eugene Ong <pebrian27_at_yahoo.com>
Date: Sat, 28 Mar 2009 02:59:52 -0700 (PDT)

Hi,
 
I'm having a problem creating the proper classes and annotations for an XML with complex nested elements. Here is a sample XML:
 
<SAMPLE>
  <INF name="DETAILS">
  <INF name="PHONE">5754837</INF>
  <INF name="GENDER">male</INF>
  </INF>
  <INF name="CONTENT">WOW</INF>
</SAMPLE>
 
The INF element can be a simple value or nested infinity!
 
Changing the XML schema is not an options since this is already widely used in our system.
 
Can this is be done using JAXB? Btw, this is my first time in using JAXB!
 
Thanks very much,
Eugene