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). I'm not sure about xml.etree , but lxml supports DTD validation: http://lxml.de/validation.html 来源: https://stackoverflow.com/questions/5396135/does-pythons-xml-etree-elementtree-support-dtd