Creating objects of xml