throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR);
throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR);
  public Text splitText(int offset)  {    if (isReadonly())      {        throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR);      }    try      {        String text = getNodeValue();        String before = text.substring(0, offset);        String after = text.substring(offset);        Text next;                if (getNodeType() == TEXT_NODE)          {            next = owner.createTextNode(after);          }        else // CDATA_SECTION_NODE          {            next = owner.createCDATASection(after);          }                if (this.next != null)          {            parent.insertBefore(next, this.next);          }        else          {            parent.appendChild(next);          }        setNodeValue(before);        return next;              }    catch (IndexOutOfBoundsException x)      {        throw new DomEx(DomEx.INDEX_SIZE_ERR);      }  }