How to load label name from file (in this case xlm

Hi
I want to load a dataset that has segments and then i have an xlm file with the name for each segment. Is there any easy way of making the names link to the segments?