'Clone this object.
@param parent: The parent for the clone.
@type parent: L{element.Element}
@return: A copy of this object assigned to the new parent.
@rtype: L{Attribute}'

def clone(self, parent=None):

    a = Attribute(self.qname(), self.value)
    a.parent = parent
    return a
