Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all ,
i have a string with xml tags now i want to write that string as a xml file to a particular directory how can i do that ?
Posted
Comments
Sergey Alexandrovich Kryukov 19-Sep-11 1:38am    
A reason for my vote of 1: such question could be asked only due to extreme laziness.
--SA

1 solution

C#
File.Write(myOutputFilePath, myXmlString);
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-Sep-11 1:37am    
It's funny that someone voted 3. Expected something wiser?
My 5.
--SA
Simon Bang Terkildsen 19-Sep-11 5:26am    
Thank you. I guess someone might have expected me to defined what myOutputFilePath and myXmlString actually is, but there hadn't been put much work into the actual question and I thought the names were self-explanatory, I still do :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900