Pojo to xsd generation

前端 未结 4 1899
抹茶落季
抹茶落季 2021-01-11 23:30

Is there a library which could generate a xsd schema from a java class? Google yields lots of results the opposite ( java classes from xsd ).

4条回答
  •  爱一瞬间的悲伤
    2021-01-12 00:28

    JiBX does this

    The schema generator tool first reads one or more JiBX binding definitions and then uses reflection to interpret the structure of the Java classes referenced in the bindings. By combining the binding definitions with the actual class information the schema generator is able to construct one or more XML schemas to represent the documents handled by the bindings.

提交回复
热议问题