Utility attribute function to retrieve attribute data from an expected