I think the problem is that you are loading the whole file into result on each iteration of the loop. The only reference to the current iteration is when you assign the file name:
file_name = ('slide'+each_slide.get('page_number')+'.xml')
other than this 'each_slide' is not referred to anywhere to obtain a subset of the document rather than the whole thing.