/**
   * Converts an <code>EppResponseDataRenewXriNumber</code> object into an XML element.
   *
   * @param doc the XML <code>Document</code> object
   * @param tag the tag/element name for the <code>EppResponseDataRenewXriNumber</code> object
   * @return an <code>Element</code> object
   */
  public Element toXML(Document doc, String tag) {
    Element elm;
    Element body = doc.createElement(tag);
    ElementNSImpl data = EppUtil.createElementNS(doc, "xriINU", "renData");
    body.appendChild(data);

    if (inumber != null) {
      elm = doc.createElement("inumber");
      elm.appendChild(doc.createTextNode(inumber));
      data.appendChild(elm);
    }
    if (exDate != null) {
      elm = doc.createElement("exDate");
      elm.appendChild(EppUtil.createTextNode(doc, exDate));
      data.appendChild(elm);
    }

    return body;
  }
  /**
   * Converts the <code>EppCommandRenewXriName</code> object into an XML element
   *
   * @param doc the XML <code>Document</code> object
   * @param tag the tag/element name for the <code>EppCommandRenewXriName</code> object
   * @return an <code>Element</code> object
   */
  public Element toXML(Document doc, String tag) {
    Element elm;
    Element body = EppUtil.createElementNS(doc, "xriINA", tag);

    if (iname != null) {
      elm = doc.createElement("iname");
      elm.appendChild(doc.createTextNode(iname));
      body.appendChild(elm);
    }
    if (curExpDate != null) {
      elm = doc.createElement("curExpDate");
      elm.appendChild(EppUtil.createTextNode(doc, curExpDate, true));
      body.appendChild(elm);
    }
    if (period != null) {
      body.appendChild(period.toXML(doc, "period"));
    }

    return toXMLCommon(doc, tag, body);
  }