We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Rename xml node from a treeview

Thread ID:




10280 Jan 28,2004 02:59 PM UTC WinForms 0
Tags: FAQ
Asked On January 28, 2004 02:59 PM UTC

Hi, I'm trying to rename xml node via treeview control. My current treeview displays xml structure on my treeview control. Now I'm trying to rename the selected node from my treeview and then rename it and hoping to see the changes on the xml document. This is my current code below. private void tvTreeView_AfterLabelEdit(object sender,System.Windows.Forms.NodeLabelEditEventArgs e) { //rename node to xml document string xpath_query = tvTreeView.SelectedNode.FullPath.Replace("\\", "//"); System.Xml.XmlNode node = tmpxmldoc.SelectSingleNode(xpath_query); node.InnerText = e.Label; tmpxmldoc.Save(theFilename); }


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon