Utility for getting and setting Xv attributes