摘要:
转载:http://stackoverflow.com/questions/8764017/commenting-and-uncommenting-xml-via-python 1 from xml.dom import minidom 2 3 xml = """\ 4 5 6 7 8 9 """10 11 def comment_node(node):12 comment = node.ownerDocument.createComment(node.toxml())13 node.parentNode.replaceChild(c 阅读全文