[Reporting-spam]Added basic reusable functions to verify/ parse xml for reporting purpose