Added XML builder

still a lot of work to do