简体   繁体   English

是否可以从Java对象自动生成XSD?

[英]Is it possible to autogenerate XSD from Java object?

I need to generate XSD file as descriptor of standard. 我需要生成XSD文件作为标准描述符。 Is it possible to autogenerate XSD from Java object? 是否可以从Java对象自动生成XSD? Of course automated util cannot make complete and fulyl accurate XSD file, but it woild be helpful. 当然,自动util无法制作完整且完整的XSD文件,但是它会有所帮助。 So is there any Java libraries for this purpose? 那么有没有为此目的的Java库?

Java6 ships with a tool called schemagen (see docs ) for exactly this purpose. schemagen Java6附带了一个名为schemagen的工具(请参阅docs )。 It attempts to generate XML Schema from Java source code. 它尝试从Java源代码生成XML模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM