def call_delete_shape(params) #get the shape's message id. doc = Document.new(params) shape_id = doc.root.elements["param[@var='id']"].text.to_s initialize_doc doc_xml = Document.new(decode2(@doc_file.root.to_s)) id = doc_xml.root.elements["records/message/body/*[@id='#{shape_id}']"].parent.parent.attributes.get_attribute('id') delete_record(id) save_file end
*update 10:04pm*
Added the link to the project code http://github.com/jrobertson/whiteboardqueue/tree