aspose file tools*
The moose likes Web Services and the fly likes Unable to generate xml using jaxb classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unable to generate xml using jaxb classes" Watch "Unable to generate xml using jaxb classes" New topic
Author

Unable to generate xml using jaxb classes

jack hiren
Greenhorn

Joined: Sep 12, 2012
Posts: 6
I am using jaxb classes fro generating xml file.
Following is my code.

sample xml(i want to generate a file like this)



ObjectFactory.java(generated using jaxb)


WebForm.java(generated using jaxb)



and the Log.java to call the jaxb functions to generate xml





However, I am getting output as :




My approach till now has been:
first i used the sample xml and converted it to .xsd file using xsd-gen-0.2.0-jar-with-dependencies.jar.
Then i used jaxb to create jaxb classes(which are shown above).

Please guide me. I am unable to trace the reason for this.

Thank you.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to generate xml using jaxb classes