Aaron de Windt
Aaron de Windt

Reputation: 17708

Does python's xml.etree.ElementTree support DTD?

Does xml.etree.ElementTree support DTD?

if it supports it, can I force ElementTree check a XML file against a dtd file, even if the XML file already has one. (internal or external).

Upvotes: 3

Views: 2408

Answers (1)

vonPetrushev
vonPetrushev

Reputation: 5599

I'm not sure about xml.etree, but lxml supports DTD validation: http://lxml.de/validation.html

Upvotes: 4

Related Questions