Finally i mafe jaxb and oxm to work and marshall xml file for me.but xml formation is wrong.Probably it is wrong usage of annotations from me.
My class person can have many persons inside ( ie list of elements) ,this is nested tree .
But XMl generated is not correct and doesnt have closing tag.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: annotations on entity class with spring oxm and jaxb for ArrayList