Free DTD to XSD conversion utility? [closed]

2019-01-06 13:46发布

问题:

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



标签: xml xsd dtd