Is there a way to declare all these things in a xml?