This page allows you to submit a standalone DTD file (which does not depend on any external entity) and get as a result a file containing CDuce type declarations that correspond to this DTD. You can save the file and use it as input for the CDuce compiler.
You can choose a prefix to be prepended to all type names (leave the field blank if you don't want any prefix).