xml response for ajax

first iteration, introducing the code