code: def getElement(self, node, name, nsuri=None, default=join):
          
          nsmatch = self.nsUriMatch
          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))
                      ):
                      return child
          if default is not join:
              return default
          raise KeyError, name
docs: Return the first child of node with a matching name and
             namespace uri, or the default if one is provided.