The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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);
}