code: public SimpleXmlNode shallowCopy() {
      SimpleXmlNode copy = new SimpleXmlNode(_name);
      copy.setText(_text);
      copy.getAttributes().putAll(_attributes);
      return copy;
    }
docs: Makes a shallow copy of this node, including its name, text, and attributes.  The returned node will
  have no children and no parent.
  
  @return a shallow copy of this node