开发者

How do I build an .xsd file from xml?

开发者 https://www.devze.com 2023-02-20 20:53 出处:网络
Is there a way to generate an xsd from an xml file? Are there any class files that do this? I don\'t mind if the solution is 开发者_C百科c# or java.

Is there a way to generate an xsd from an xml file? Are there any class files that do this? I don't mind if the solution is 开发者_C百科c# or java.

I would like to do this in code, but if there are any good free tools that would be ok too.

Thanks


xsd.exe can do what you want:

If you specify an XML file (.xml extension), Xsd.exe infers a schema from the data in the file and produces an XSD schema. The output file has the same name as the XML file, but with the .xsd extension.


Try xsd command better explained at XML Schema Definition Tool (Xsd.exe)

0

精彩评论

暂无评论...
验证码 换一张
取 消