Add xml for domains and rules