This is a question from a co-worker. He is trying to figure out how to save to the hard drive a well-formed XML document that he wants to create in memory. He's trying to create the document by using a doc_open command, but this doesn't work because the file doesn't exist yet; using the command without specifying a filename doesn't cause an error, but it's not known to him where the document is saved by the doc_save command.
Seems simple enough: he just wants to create a document in memory, insert data into it, save it, and open it later for reading. This should all be invisible to the user.
Should he be using "file_*" commands instead of "doc_*" commands?
Does any of this make any sense to anyone? Any ideas?