Hey, Can I convert an xml.dom.Node object to an xml.dom.Element object? I want to do the conversion inside a condition like this:
if node.nodeType == Node.ELEMENT_NODE: # do conversion: element = Element(node) element = node.toElement() so it definitely won't cause problems. I just can't find a way to do it! (I want to be able to call getElementsByTagName() on the resultant object; any other workarounds which allow the same functionality would be just as cool ;-) Cheers, Richard -- http://mail.python.org/mailman/listinfo/python-list