How to create and write xml file in below url using visual studio(Programatically).
web.Url + "/_layouts/MyPoject/Generated.xml"

I want to generate xml programatically inside MyProject Folder. once it generate how to write into that xml
Thanks
|
How to create and write xml file in below url using visual studio(Programatically). web.Url + "/_layouts/MyPoject/Generated.xml"
I want to generate xml programatically inside MyProject Folder. once it generate how to write into that xml Thanks |
|||||
|
|
I don't believe this is a supported model, also I wouldn't recommend it. The layouts folder should be as 'static' as possible. A few cons for using the layouts folder:
Instead of using the layouts folder, save your XML to a document library, or save the XML in a property bag within the farm somewhere. This way, it's centrally available and is being backed up as part of the farm's existent management solution. HTH |
|||
|
|
|
i think first find it out Layouts Directory file using SPUtility.GetGenericSetupPath
and than create xml or update your xml. like this:
its working on my local Hope it helps!!! |
|||
|
|
By default the "MyProject" portion of the url is based on the solution name (project name) |
|||
|