import re


def getMapping (fileMapped) :
    """Get the mapping between files from the file name."""
    
    fileRes=re.sub("_[a-z]+\.xml$","",fileMapped)
    fileS,fileD=fileRes.split("_")
    
    fileS+=".xml"
    fileD+=".xml"
    
    return fileS,fileD