How to generate @XmlRootElement Classes for Base Types in XSD?

前端 未结 2 1621
抹茶落季
抹茶落季 2020-12-05 10:29

I am having some issues with generating Java Classes with appropriate JAXB annotations from an XSD using XJC.

I have a relatively simple XSD file defining my XML sch

2条回答
  •  暖寄归人
    2020-12-05 11:03

    This question references a blog post by Kohsuke Kawaguchi, formerly worked on the JAX-B or JAX-WS RI, that talks about the RI's decision making process and lack of clarity on this issue in the spec.

    The blog post mentions that the simple binding feature is part of the RI. Are you using the RI to generate your code?

提交回复
热议问题