I do not have right to write on a disk. I want to create a string which consist of xml file.
I do not want to give filename because I have no permissions. If I simply append xml to string is it working? Is there any better way to do it.
XmlTextWriter xmlWriter = new XmlTextWriter(fileName, Encoding.UTF8);
Code Input :
Text Output: