modified by Parag for xml element