I have a small issue with the bindings for which I am not
able to get to a solution...
Following is the snippet of the XML code:
<xs:element name="Responses">
<xs:complexType>
<xs:sequence>
<xs:element name="Response" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" type="xs:string"/>
<xs:element name="Value" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
Now: <xs:element name="ID"> has mutiple unique value added
to it during runtime. I was thinking of creating a dynamic
Java class which would
1. take the value from the ID element each time and create
a Java Property of the same name for type Response
which is a bean
2. assign the value from <xs:element name="Value"> to the
new varibale created.
Will I be able to make my XSD annotation so intelligent to
handle the above for me.
I would appreciate the efforts to help me a lot...
--
View this message in context: http://www.nabble.com/XML-to-Java-Type-Custom-Binding-tp19267669p19267669.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.