Updating an XML while changing the Image index of a TreeNode in C#

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have a treeview named as tv_dynamic_creation.I saved the treeview structure in a XML file along with its image index.If i changes the image index of the existing node and clicked submit button means the xml file doesnt gets updated. My XML file
will be lik this following file:
<span> <span style="color:#ff0000; font-family:Courier New
<span style="color:#0000ff <span><?<span>xml version="1.0" encoding="us-ascii"
<span>?>

<div style=" file:///C:/Documents%20and%20Settings/RG111186/My%20Documents/Visual%20Studio%202008/Projects/treeview/treeview/bin/Debug/Output.xml# <span style="color:#ff0000; font-family:Courier New -
<span><span style="color:#0000ff <<span><span style="color:#990000 TreeView<span><span style="color:#0000ff >


<div style=" file:///C:/Documents%20and%20Settings/RG111186/My%20Documents/Visual%20Studio%202008/Projects/treeview/treeview/bin/Debug/Output.xml# <span style="color:#ff0000; font-family:Courier New -
<span><span style="color:#0000ff <<span style="color:#990000 <span>node<span> text<span><span style="color:#0000ff =" school <span><span style="color:#0000ff "<span><span style="color:#990000
imageindex<span><span style="color:#0000ff =" 0 <span><span style="color:#0000ff "<span><span style="color:#990000 font<span><span style="color:#0000ff =" Arial
Black <span style="color:#0000ff <span>"<span>>


<div style=" <span> <span style="color:#ff0000; font-family:Courier New
<span><span style="color:#0000ff <<span><span style="color:#990000 node
<span><span style="color:#990000 text<span><span style="color:#0000ff =" hm <span><span style="color:#0000ff "<span><span style="color:#990000 imageindex<span><span style="color:#0000ff =" 1 <span><span style="color:#0000ff "<span><span style="color:#990000
font<span><span style="color:#0000ff =" Arial Black <span style="color:#0000ff <span>"<span> />


<div style=" <span> <span style="color:#ff0000; font-family:Courier New
<span><span style="color:#0000ff <<span><span style="color:#990000 node
<span><span style="color:#990000 text<span><span style="color:#0000ff =" corres <span><span style="color:#0000ff "<span><span style="color:#990000 imageindex<span><span style="color:#0000ff =" 2 <span><span style="color:#0000ff "<span><span style="color:#990000
font<span><span style="color:#0000ff =" Arial Black <span style="color:#0000ff <span>"<span> />


<div style=" file:///C:/Documents%20and%20Settings/RG111186/My%20Documents/Visual%20Studio%202008/Projects/treeview/treeview/bin/Debug/Output.xml# <span style="color:#ff0000; font-family:Courier New -
<span><span style="color:#0000ff <<span style="color:#990000 <span>node<span> text<span><span style="color:#0000ff =" staffs <span><span style="color:#0000ff "<span><span style="color:#990000
imageindex<span><span style="color:#0000ff =" 3 <span><span style="color:#0000ff "<span><span style="color:#990000 font<span><span style="color:#0000ff =" Arial
Black <span style="color:#0000ff <span>"<span>>


<div style=" <span> <span style="color:#ff0000; font-family:Courier New
<span><span style="color:#0000ff <<span><span style="color:#990000 node
<span><span style="color:#990000 text<span><span style="color:#0000ff =" Teaching-staffs <span><span style="color:#0000ff "<span><span style="color:#990000 imageindex<span><span style="color:#0000ff =" 4 <span><span style="color:#0000ff "<span><span style="color:#990000
font<span><span style="color:#0000ff =" Arial Black <span style="color:#0000ff <span>"<span> />


<div style=" <span> <span style="color:#ff0000; font-family:Courier New
<span><span style="color:#0000ff <<span><span style="color:#990000 node
<span><span style="color:#990000 text<span><span style="color:#0000ff =" Non-Teaching-staffs <span><span style="color:#0000ff "<span><span style="color:#990000 imageindex<span><span style="color:#0000ff =" 5 <span><span style="color:#0000ff "<span><span style="color:#990000
font<span><span style="color:#0000ff =" Arial Black <span style="color:#0000ff <span>"<span> />

<span> <span style="color:#ff0000; font-family:Courier New
<span><span style="color:#0000ff </<span><span style="color:#990000 node<span><span style="color:#0000ff >


<span> <span style="color:#ff0000; font-family:Courier New
<span><span style="color:#0000ff </<span><span style="color:#990000 node<span><span style="color:#0000ff >


<span> <span style="color:#ff0000; font-family:Courier New
<span><span style="color:#0000ff </<span><span style="color:#990000 TreeView<span><span style="color:#0000ff >
<span><span style="color:#0000ff
<span><span style="color:#0000ff Can anyone help on this Pls. Thanks in advance



View the full article
 
Back
Top