Validating SGML parser?

Benjamin Niemann pink at odahoda.de
Sat Aug 21 17:58:48 EDT 2004


Hi,

does anyone know of a validating SGML parser in python (like 
xmlproc.xmlval does for XML)? Goal is to validation HTML against the 
DTD, similar to validator.w3.org, not all SGML obscurities are required.

If real SGML validation is no option, I could probably rewrite the HTML 
to make it XML conformant and feed it into xmlval - but then I'll have 
to find a way to map line/column numbers from error messages to 
positions in the unmodified HTML. I leave this as an exercise for my 
future self...

Greetings from Heidelberg, Germany
	Benjamin Niemann



More information about the Python-list mailing list