adding xml to dynamic collection generation