TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mohit Juneja
NA
24
16.7k
writing xml to a file.. overwriting previous data
Mar 27 2013 6:53 AM
Whenever i am trying to execute this code .. it overwrites my previous XML elements...
XmlDocument Doc = new XmlDocument();
XmlDeclaration dec = Doc.CreateXmlDeclaration("1.0", null, null);
Doc.AppendChild(dec);
XmlElement DocRoot = Doc.CreateElement("Feedback");
Doc.AppendChild(DocRoot);
XmlNode server = Doc.CreateElement("Message");
DocRoot.AppendChild(server);
server.InnerText = this.TextBox1.Text;
Doc.Save(Server.MapPath("mm.xml"));
Reply
Answers (
1
)
gridview
sql query to select questions randomly each time