def isElement(self, node, name, nsuri=None):
if node.nodeType != node.ELEMENT_NODE:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>return node.localName == name and(nsuri is None or self.nsUriMatch(node.namespaceURI, nsuri))<EOL>
Return true if the given node is an element with the given
           name and optional namespace uri.