Making xml work