handling leaf node for xml data