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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
The W3C offers one. There are also online converters.
回答2:
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.
回答3:
Try xmlpad from http://www.wmhelp.com to convert DTD to XSD. Really nice tool.
回答4:
http://www.thaiopensource.com/relaxng/trang.html
Trang converts between different schema languages for XML. It supports the following languages:
- RELAX NG (XML syntax)
- RELAX NG compact syntax
- XML 1.0 DTDs
- W3C XML Schema
http://www.thaiopensource.com/relaxng/trang-manual.html