One XSD, two code generation tools, two namespaces

前端 未结 2 1745
甜味超标
甜味超标 2021-01-26 03:00

I have a XSD file, from which I want to generate C# and Java classes as well.

I first set the namespace in the XSD according to my C# namespace where my classes resides.

2条回答
  •  不思量自难忘°
    2021-01-26 03:39

    The XSD namespace doesn't have to match the package structure, at least not in Java. When generating the classes using JAXB just provide the package you want to put the classes into.

提交回复
热议问题