我想安装minidom,但我不知道怎么安装。它是PyXML的一部分吗?
我曾尝试在PyXML中使用简易安装,但似乎不起作用。
发布于 2013-11-29 19:36:59
啊哈,你不需要PyXML来使用它,它包含在标准库中。
>>> import xml.dom.minidom
>>> help(xml.dom.minidom)
Help on module xml.dom.minidom in xml.dom:
NAME
xml.dom.minidom - Simple implementation of the Level 1 DOM.
DESCRIPTION
Namespaces and other minor Level 2 features are also supported.
parse("foo.xml")
parseString("<foo><bar/></foo>")
Todo:
=====
* convenience methods for getting elements and text.
* more testing
* bring some of the writer and linearizer code into conformance with this
interface
* SAX 2 namespaces
...
...希望这能有所帮助!
发布于 2013-11-29 19:26:03
实际上,这是Python standard Library的一部分。
https://stackoverflow.com/questions/20284604
复制相似问题