I'd like to know how I can serialize an XML document in 开发者_开发知识库python specifically using the xml.dom library.
You mean something like:
xml.dom.ext.PrettyPrint(doc, open(name, "w"))
where doc is the XML document and name is the name of the file?
Or, if you have xml.dom.minidom, how about the xml.dom.minidom.writexml function?
加载中,请稍侯......
精彩评论