Java - XML Binding - Pattern to be used
Hi All,
I have a obj (obj1,obj2,obj3) etc.. is the internal structure of the Object.I am passing the object to the XMLBeans classes created to populate data from the object and create the xml.
Now the implementation is done in a single file where the document instance is created and the respective interface types created by the bean and finally populate the beans with the respective values from the object.
I feel this is a clumsy way of doing it , can anybody suggest how do we bifurcate the responsibility of reading the Object as one task and then get the appropriate interface bean type and then glue them together with the value.

