gpt4 book ai didi

c# - 如何从 xml 构建 .xsd 文件?

转载 作者:数据小太阳 更新时间:2023-10-29 02:59:06 25 4
gpt4 key购买 nike

有没有办法从 xml 文件生成 xsd?是否有任何类文件可以执行此操作?我不介意解决方案是 C# 还是 Java。

我想在代码中做到这一点,但如果有任何好的免费工具也可以。

谢谢

最佳答案

xsd.exe可以为所欲为:

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.

关于c# - 如何从 xml 构建 .xsd 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5501768/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com