Added functionalities in xml parser for message generation