def getElements(self, node, name, nsuri=None):
nsmatch = self.nsUriMatch<EOL>result = []<EOL>ELEMENT_NODE = node.ELEMENT_NODE<EOL>for child in node.childNodes:<EOL><INDENT>if child.nodeType == ELEMENT_NODE:<EOL><INDENT>if ((child.localName == name or name is None) and (<EOL>(nsuri is None) or nsmatch(child.namespaceURI, nsuri))):<EOL><INDENT>result.append(child)<EOL><DEDENT><DEDENT><DEDENT>return result<EOL>
Return a sequence of the child elements of the given node that
           match the given name and optional namespace uri.