2013年12月5日
摘要: 转载: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 阅读全文
posted @ 2013-12-05 18:13 lpthread 阅读(385) 评论(0) 推荐(0) 编辑