Welcome to the home page of pydtd2xsd. pydtd2xsd is a simple, but hopefully effective, tool to convert complex DTDs, possibly spread over several files and making extensive use of entity substitutions, into XML Schema files. As of now, the generated Schema files are not very elegant and probably more suitable for automatic validation than to convert a project from DTD to Schema and maintain the Schema file manually.

Download and Installation

pydtd2xsd comes as one rather small python file which you can download here Install it, preferably under the filename pydtd2xsd, somewhere in your path, make it executable, and you're ready to go.

Features and Documentation

The features, limitations, and invocation syntax of pydtd2xsd are documented in a manpage which is available in DocBook or, for your immediate viewing pleasure, in HTML.


0.1 2004-01-11 Initial public release.


pydtd2xsd is copyright (c) 2004 by Oliver M. Haynold.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA