Add logic to the xml trunk repo