将 Python 字典序列化为 XML [英] Serialize Python dictionary to XML

查看:66
本文介绍了将 Python 字典序列化为 XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个名为simplejson"的简单 JSON 序列化模块,可以轻松地将 Python 对象序列化为 JSON.

There is simple JSON serialization module with name "simplejson" which easily serializes Python objects to JSON.

我正在寻找可以序列化为 XML 的类似模块.

I'm looking for similar module which can serialize to XML.

推荐答案

http://code.activestate.com/recipes/415983/

http://sourceforge.net/projects/pyxser/

http://soapy.sourceforge.net/

http://www.ibm.com/developerworks/webservices/library/ws-pyth5/

http://gnosis.cx/publish/programming/xml_matters_1.txt

这篇关于将 Python 字典序列化为 XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆