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?
The W3C offers one. There are also online converters.
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.
Try xmlpad from http://www.wmhelp.com to convert DTD to XSD. Really nice tool.
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
来源:https://stackoverflow.com/questions/1510126/free-dtd-to-xsd-conversion-utility