0

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?

andreSmol
  • 976
  • 17
  • 27

1 Answers1

0

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?

Community
  • 1
  • 1
WeaselFox
  • 6,770
  • 6
  • 39
  • 72