StringBuffer buf = cdata.getString(); buf.delete( offset, offset + count ); cdata.setLength(0); cdata.append(buf);
if(cdata != null) cdata.delete(offset, count);
    public void deleteData( int offset, int count ) throws DOMException {        StringBuffer buf = cdata.getString();        buf.delete( offset, offset + count );        cdata.setLength(0);        cdata.append(buf);    }