Is there a tool that can generate Django models from a DTD? Failing that, are there any decent DTD parsers available for Python?
A:
I have not seen anything for Django that does that directly. However, have you looked at lxml
's Xpath functionality? Breezing through the docs makes it look like it can do DTD parsing.
jathanism
2010-03-12 01:53:36
I have, and unfortunately it's limited to using the DTD to validate arbitrary XML documents.
Ignacio Vazquez-Abrams
2010-03-12 02:11:32