Groundwork for Membership and Residency XML tasks