Free DTD to XSD conversion utility?

XmlXsdDtd

Xml Problem Overview


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?

Xml Solutions


Solution 1 - Xml

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.

Solution 2 - Xml

The W3C offers one. There are also online converters.

Solution 3 - Xml

Try xmlpad from https://download.cnet.com/XmlPad/3000-7241_4-10252051.html to convert DTD to XSD. Really nice tool.

Solution 4 - Xml

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJeremy SteinView Question on Stackoverflow
Solution 1 - XmlSergeView Answer on Stackoverflow
Solution 2 - XmlMartin v. LöwisView Answer on Stackoverflow
Solution 3 - XmlasinghView Answer on Stackoverflow
Solution 4 - XmlAndriy PlokhotnyukView Answer on Stackoverflow