Generating stream file in the same path of the xml.