python - 如何从 Google App Engine 应用程序解析 XML?

标签 python xml google-app-engine parsing

如何从 Google App Engine 应用解析 XML?有例子吗?

最佳答案

自从提问以来,Google 已经将 pyexpat 列入白名单,其中包括 minidom,因此您可以使用以下代码而无需上传任何库:

from xml.dom import minidom

dom = minidom.parseString('<eg>example text</eg>')

更多信息: http://docs.python.org/library/xml.dom.minidom.html

关于python - 如何从 Google App Engine 应用程序解析 XML?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/410954/

相关文章:

python - 使用 i2c 和 Python 中断

google-app-engine - 默认 GCS 存储桶名称

google-app-engine - Google App Engine 综合索引重用

google-app-engine - 我可以比较 GAE 的 ndb 中单一类型的两个属性吗?

java - Spring:解码 XML 字符串时出现 OXM 错误(castor)

Python 和 Statsmodels : How to include the alternative test_t hypothesis?

python - 在生产中将 flask 作为包运行

Mac 上的 Python 3 : ModuleNotFoundError: No module named 'mglearn'

xml - 如何将祖先元素下的所有后代文本节点作为单个字符串检索?

c# - 在 C# 中使用 XmlReader 读取 Xml