--- xmlutils.orig.py 2008-07-27 01:36:29.780145800 +0900 +++ xmlutils.py 2008-07-26 02:51:53.441200000 +0900 @@ -79,6 +79,12 @@ if child.nodeType == child.TEXT_NODE and child.data.strip()=='': parent.removeChild(child) return parent + +def RemoveComments(parent): + for child in list(parent.childNodes): + if child.__class__.__name__ == "Comment": + parent.removeChild(child) + return parent ##def RemoveWhiteSpace(node): ## removeList = [] @@ -171,3 +177,4 @@ xmlNode.appendChild(el) return xmlNode +