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