olive a écrit : > Hi, > > I have a bunch of similar DTDs written by different coders. > > I would like to normalize, sort elements and attributes by name and > compare those files. > > Do you know any XML DTD parser/normalizer written in Python ?
Yes, you can try http://c.python.free.fr/dtdnormalize.zip Parse a sample XML file with the document type declaration. There are XHTML, SVG and MML samples in the zip file. The DTDParser is based on the standard xml.parsers.expat module. Stephane. -- http://mail.python.org/mailman/listinfo/python-list