Topic
  • 1 reply
  • Latest Post - ‏2011-05-27T22:19:38Z by SystemAdmin
samash
samash
1 Post

Pinned topic how to generate sample xml by given schema programtically in java??

‏2011-05-20T11:38:52Z |
I am developing dynamic request response Application in java.I am having schema,How can i get the sample xml with root element which comply this schema.. in java? Is there any library available.

or

Can i generate the xml through xpath.I am having the hasmap of the xpath....??

Can anyone suggest me..?Please help....
Updated on 2011-05-27T22:19:38Z at 2011-05-27T22:19:38Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1830 Posts

    Re: how to generate sample xml by given schema programtically in java??

    ‏2011-05-27T22:19:38Z  
    Bind the XML Schema to Java classes using JAXB 2.0. Subsequently, marshall the Java objects to XML.
    http://www.theregister.co.uk/2006/09/22/jaxb2_guide/