XML DTD analysis, diffing ...
Stéphane Muller
Stephane.Muller at uhp-nancy.fr
Tue Apr 3 11:07:05 EDT 2007
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.
More information about the Python-list
mailing list