Set plugged and linked attributes only if they exist in the xml