标签云

微信群

扫码加入我们

WeChat QR Code


Dive Into Python has a chapter. Can't vouch for how good it would be though.

2018年10月21日09分58秒

Isn't pulldom is a tool for parsing XML, not generating it (which is what the question asks about)?

2018年10月21日09分58秒

To complete your answer, can you add that lxml also support XML schema and XPath, which is not supported by ElementTree? And it's indeed shipped with Python 2.5.

2018年10月21日09分58秒

ElementTree is good until you need to deal with namespaces then it falls apart and it's unusable.

2018年10月21日09分58秒

In Python, there are others ways, such as ElementTree (see Gareth Simpson's reply)

2018年10月22日09分58秒