'Add or update a prefix mapping.
@param p: A prefix.
@type p: basestring
@param u: A namespace URI.
@type u: basestring
@return: self
@rtype: L{Element}'

def addPrefix(self, p, u):

    self.nsprefixes[p] = u
    return self
