B
Benjamin Niemann
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
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