Parsing DTDs

Piet van Oostrum piet at cs.uu.nl
Fri May 29 13:44:12 EDT 2009


>>>>> Tom Anderson <twic at urchin.earth.li> (TA) wrote:

>TA> Hello!
>TA> I would like to parse XML DTDs. The goal is to be able to validate XML-like
>TA> object structures against DTDs in a fairly flexible way, although i can get
>TA> from a parsed DTD to a validation engine myself, so that's not an essential
>TA> feature of the parser (although it would be nice!). What should i do?

>TA> A bit of googling revealed that the xmlproc package contains a DTD parser
>TA> that looks like it does just what i want, and that xmlproc became PyXML,
>TA> and that PyXML is no longer maintained.

>TA> Is there a DTD parser that is being maintained? Or does it not really
>TA> matter that PyXML is no longer maintained, given that it's not like the DTD
>TA> spec has changed very much?

http://codespeak.net/lxml/validation.html#dtd
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list