开发者

python xml validation with xsd file

Every year or so someone seems to ask the same question. Is there a good Python library to validate xml files comparing them to an xsd schema? The closest I've found is s开发者_StackOverflow中文版uggestions involving lxml, which unfortunately is not pure python (based on a few C libraries)


I would be surprised to find any pure Python XSD validation libraries. I am aware of the following alternatives for CPython, but they all depend on non-Python code:

  • lxml (based on libxml2)
  • libxml2 Python bindings
  • XSV
  • MSXML with PyWin32


I've used XSV for this. It's about four years since any active dev, but it works.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜