File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to generate xml using jaxb classes

jack hiren
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jaxb classes fro generating xml file.
Following is my code.

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

and the 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.
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic