When using google scripts to turn a spreadsheet into an xml document, where does google scripts send the finished product?
I have been searching the XMLService documentation page, and I can't find it anywhere.
In the sample code, they show:
var document = XmlService.createDocument(root);
var xml = XmlService.getPrettyFormat().format(document);
Logger.log(xml);
Which seems like they just print the entire xml document into the script log? I tried it, and it really seems like that's what they're doing.
I'm looking for a function that, when called, will create a new document in my google drive called "whatever.xml", but it doesn't appear to exist?
What am I missing?
I saw ContentService has a text output that will download the file to your computer when it runs the script, but this is a script I need to
1)have run automatically every night
2)be stored online in a shared drive
and I'd rather not have to re-upload the file manually when the script runs just so the final output is accesible to the project collaborators (this is a script that I will have run on a timer at midnight every day.) (Also, will it still download the file if I don't have a browser window open when the script runs?)
DriveApp
? See tag info page for official documentation – TheMaster