get mapping out of xml