# File wikibot.rb, line 105
        def edit(title, text, summary)
                
                post_this = {'title' => title, 'text' => text, 'summary' => summary,
                                'token' => @config.edit_token, 'edittime' => Time.now.strftime("%Y%m%d%H%M%S")}
                if @config.timestamp != nil then
                        post_this.store('basetimestamp', @config.timestamp)
                end
                
                if @config.mark_edit_as_bot then
                        post_this.store('bot', '1')
                end
                
                # Make the request
                result = make_request('edit', post_this)
                error_elements = result.get_elements('//error')
                if error_elements.size > 0 then
                        error_element = error_elements.first
                        raise MediaWikiApiError,
                                'Edit failure, code=' + error_element.attribute('code').to_s +
                                ', info="' + error_element.attribute('info').to_s + '"'
                end
                result_attribute_value = result.get_elements('//edit').first.attribute('result').to_s
                if not result_attribute_value.eql?('Success') then
                        error_element = error_elements.first
                        raise MediaWikiApiError,
                                'Edit failure, ' + result.to_s
                end
                
                # Result processing
                return nil
                
        end