Some Python scripts to deal with DTD:

They rely on the xmldtd module of the XMLProc python module.