How to consume XML from RESTful web services using Django / Python?

后端 未结 3 1870
感动是毒
感动是毒 2021-02-04 21:20

Should I use PyXML or what\'s in the standard library?

3条回答
  •  春和景丽
    2021-02-04 22:20

    I always prefer to use the standard library when possible. ElementTree is well known amongst pythonistas, so you should be able to find plenty of examples. Parts of it have also been optimized in C, so it's quite fast.

    http://docs.python.org/library/xml.etree.elementtree.html

提交回复
热议问题