Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB Problem

 
Ian Link
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an xsd that looks like this (snippet):

----------------------------------

----------------------------------

For some reason this is the Java code that gets generated:



----------------------------------

Why is the class geneated like this and simply not some kind of string array? I really dont want to have to create JAXBElements everytime I want to create something?

How can i have it generate classes for each of the types that simply represent string or something like that?

Thanks in advance,

Ian

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic