hi,
Sorry for this dummy question, but I can;t get it to work… But how do I store a string to disk as xml? (I already have a xml file, and I want to dynamically insert the hostnames…)
var configFile =
`
<?xml version="1.0"?>
<SharedPersistenceConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
...
<DbHost>` + Meteor.settings.public.qlikSenseHost + `</DbHost>
...
</SharedPersistenceConfiguration>
`;
//SAVE Silent install CONFIG TO THE EXPORT FOLDER
var file = path.join(Meteor.settings.broker.automationBaseFolder, 'InstallationSoftware', 'spc.cfg');
fs.outputFile(file, JSON.stringify(configFile, null, 2), 'utf-8');
–> stores a file, but this is not recognized as xml by the other program that needs to read it…
thanks a lot!