parse mds to get text