How to show whole content of an Xml file in a textbox?

i need to display whole content of an xml file in a textbox,so a user can see it and change it,and then i have to update the xml file.The user knows xml and how it works,i just need to display whole content of an xml file in a textbox on the page and after button clicking ,update the file,can anyone help me,thanks in advance.

Answers


To load:

TextBox1.Text = File.ReadAllText(filePath);

To save:

File.WriteAllText(filePath, TextBox1.Text);

Need Your Help

What would be regular Expression for validating Date format like mm/yyyy.?

javascript jquery regex jquery-validate

What would be regular Expression for validating Date format like mm/yyyy. I am new to regular expressions