开发者

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

开发者 https://www.devze.com 2023-02-18 20:43 出处:网络
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 alre开发者_如何学JAVAady has one. (internal or external).I

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 alre开发者_如何学JAVAady has one. (internal or external).


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号