• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to generate xml using jaxb classes

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)



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's a tiny ad. At least, that's what she said.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic