Take the 2-minute tour ×

I have a DTD and I have a text where I can identify different structures. I need to code the text accoding to the DTD structure (elements/attributes). I wonder if there is some robust support in Python 2.6 to facilitate this task. Any suggestions about how to tackle the problem?

share|improve this question

1 Answer 1

if you can push your text into a dictionary with the elements/attributes you need, than you can use one of the solutions suggested here, to transform the dict to XML. Is this what you need?

share|improve this answer

Your Answer


