Dynamically creating initialize script in order to pass in variable XML data on the fly.