This script would Generate an XML file or a Json File