Handled document upload and turned into a XML file