code: public XElement add(String name, Object value) {
          XElement result = add(name);
          result.parent = this;
          result.setValue(value);
          return result;
      }
docs: Add an element with the supplied content text.
  @param name the name
  @param value the content
  @return the new element