xml 免费的 DTD 到 XSD 转换实用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1510126/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Free DTD to XSD conversion utility?
提问by Jeremy Stein
I have a DTD that I need to convert to an XSD (XML schema) file. Is there a free utility or simple way to accomplish this?
我有一个 DTD,需要将其转换为 XSD(XML 架构)文件。是否有免费的实用程序或简单的方法来完成此操作?
采纳答案by Martin v. L?wis
The W3C offers one. There are also online converters.
回答by Serge
If you happen to have Visual Studio, open the DTD file an you should have a button to "Create Schema" out of it.
I haven't checked if it was available on Express edition, though.
如果你碰巧有 Visual Studio,打开 DTD 文件,你应该有一个按钮来“创建架构”。
不过,我还没有检查它是否在 Express 版上可用。
回答by asingh
Try xmlpad from http://www.wmhelp.comto convert DTD to XSD. Really nice tool.
尝试从http://www.wmhelp.com使用xmlpad将 DTD 转换为 XSD。真是不错的工具。
回答by Andriy Plokhotnyuk
http://www.thaiopensource.com/relaxng/trang.html
http://www.thaiopensource.com/relaxng/trang.html
Trang converts between different schema languages for XML. It supports the following languages:
Trang 在不同的 XML 模式语言之间进行转换。它支持以下语言:
- RELAX NG (XML syntax)
- RELAX NG compact syntax
- XML 1.0 DTDs
- W3C XML Schema
- RELAX NG(XML 语法)
- RELAX NG 紧凑语法
- XML 1.0 DTD
- W3C XML 架构

