class REXML::Element

def clone


e.clone # =>
e.add_attributes({'bar' => 0, 'baz' => 1})
e = REXML::Element.new('foo')

but not the parent or children:
Returns a shallow copy of the element, containing the name and attributes,

clone -> new_element
:call-seq:
def clone
  self.class.new self
end