Create XML document via process model


I am struggling with creating file dynamically with .xml extension  when my process model starts.  After file creation I will add XML contents in to it. Please note this not a manual upload of a document. 

So the idea is:

Step 1 : Starts process model

Step 2: Create file(document) with .XML extension under some folder

Step 3: Add XML contents into it

Step 4: Save 


 Discussion posts and replies are publicly visible