Click here to Skip to main content
15,896,118 members
Home / Discussions / C#
   

C#

 
AnswerRe: Finding controls Pin
Luc Pattyn11-Mar-11 18:16
sitebuilderLuc Pattyn11-Mar-11 18:16 
Questionstring.split question Pin
jashimu11-Mar-11 4:59
jashimu11-Mar-11 4:59 
AnswerRe: string.split question Pin
Luc Pattyn11-Mar-11 5:12
sitebuilderLuc Pattyn11-Mar-11 5:12 
AnswerRe: string.split question Pin
Dan Mos11-Mar-11 5:18
Dan Mos11-Mar-11 5:18 
AnswerRe: string.split question Pin
Dalek Dave11-Mar-11 5:19
professionalDalek Dave11-Mar-11 5:19 
AnswerRe: string.split question Pin
#realJSOP12-Mar-11 3:41
professional#realJSOP12-Mar-11 3:41 
QuestionXML File user output [modified] Pin
Pierre besquent10-Mar-11 23:27
Pierre besquent10-Mar-11 23:27 
AnswerRe: XML File user output Pin
Tarun.K.S10-Mar-11 23:55
Tarun.K.S10-Mar-11 23:55 
Good question.

Here is how i did. Suppose user selects the path like this :
C#
Path="C:\MyFile.xml";


Suppose you have an object of xmlDoc containing the xml.
So now we have to create a Filestream for the new path, and then use the StreamWriter class to write the xml to the new path.

C#
FileStream fs=new FileStream(path,FileMode.Create,FileAccess.ReadWrite);
StreamWriter sw=new StreamWriter(fs,Text.Encoding.UTF8);
sw.Write(xmlDoc.OuterXml);
sw.Close();
fs.Close();


Hope it helped! Smile | :)

People with high attitude deserve the standing ovation of our highest finger!

My Technical Blog![^]

GeneralRe: XML File user output Pin
Pierre besquent11-Mar-11 0:05
Pierre besquent11-Mar-11 0:05 
GeneralRe: XML File user output Pin
Tarun.K.S11-Mar-11 0:08
Tarun.K.S11-Mar-11 0:08 
GeneralRe: XML File user output Pin
Pierre besquent11-Mar-11 4:28
Pierre besquent11-Mar-11 4:28 
GeneralRe: XML File user output Pin
Tarun.K.S11-Mar-11 6:46
Tarun.K.S11-Mar-11 6:46 
GeneralRe: XML File user output Pin
Pierre besquent13-Mar-11 22:12
Pierre besquent13-Mar-11 22:12 
GeneralRe: XML File user output Pin
Pierre besquent14-Mar-11 0:59
Pierre besquent14-Mar-11 0:59 
GeneralRe: XML File user output Pin
Tarun.K.S6-Apr-11 20:25
Tarun.K.S6-Apr-11 20:25 
AnswerRe: XML File user output Pin
musefan11-Mar-11 0:11
musefan11-Mar-11 0:11 
QuestionRead Remote server Directories Pin
vishnukamath10-Mar-11 22:59
vishnukamath10-Mar-11 22:59 
AnswerRe: Read Remote server Directories Pin
musefan10-Mar-11 23:23
musefan10-Mar-11 23:23 
GeneralRe: Read Remote server Directories Pin
vishnukamath10-Mar-11 23:42
vishnukamath10-Mar-11 23:42 
GeneralRe: Read Remote server Directories Pin
musefan10-Mar-11 23:49
musefan10-Mar-11 23:49 
GeneralRe: Read Remote server Directories Pin
vishnukamath13-Mar-11 18:51
vishnukamath13-Mar-11 18:51 
QuestionBackgroundworker Pin
arkiboys10-Mar-11 22:43
arkiboys10-Mar-11 22:43 
AnswerRe: Backgroundworker Pin
musefan10-Mar-11 23:22
musefan10-Mar-11 23:22 
GeneralRe: Backgroundworker Pin
arkiboys10-Mar-11 23:31
arkiboys10-Mar-11 23:31 
GeneralRe: Backgroundworker Pin
Eddy Vluggen10-Mar-11 23:39
professionalEddy Vluggen10-Mar-11 23:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.