Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我认为 ElementTree 不支持 DTD 或 XSD 是否正确?有没有办法将任何东西插入 ElementTree 以支持验证,最好是通过 XML Schema?
我会尝试使用 lxml 库;它支持 etree 表示和验证。