Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

xml node update attribute value c#

//Here is the variable with which you assign a new value to the attribute
string newValue = string.Empty;
XmlDocument xmlDoc = new XmlDocument();

xmlDoc.Load(xmlFile);

XmlNode node = xmlDoc.SelectSingleNode("Root/Node/Element");
node.Attributes[0].Value = newValue;

xmlDoc.Save(xmlFile);

//xmlFile is the path of your file to be modified
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity conditional field 
Csharp :: Set value into lookup field in console app using dynamic CRM 365 
Csharp :: how to find how much digits in number c# 
Csharp :: c# string to char 
Csharp :: currentTimeMillis c# 
Csharp :: {} is this used for code blcoks in c# 
Csharp :: how to get all panels in form in c# 
Csharp :: Exit string qoutes c# 
Csharp :: how to make a game 
Csharp :: unity system time 
Csharp :: wpf image clip with rounded corners 
Csharp :: how to say "Hello world" in c# 
Csharp :: how to write switch statement unity 
Csharp :: unity input.getkeyup not working 
Csharp :: unity how to get fps c# 
Csharp :: an entry with the same key already exists asp net 
Csharp :: c# image to byte array 
Csharp :: c# array remove first element 
Csharp :: detect keypress c# 
Csharp :: unity get selected gameobject 
Csharp :: c# start process and wait for exit code 
Csharp :: how to convert iformfile to byte array c# 
Csharp :: destroy gameobject unity 
Csharp :: unity hub black screen 
Csharp :: list of chars to string c# 
Csharp :: changing euler angles unity 
Csharp :: access a local varible in a different function C# 
Csharp :: unity instantiate with name 
Csharp :: c# convert string to int 
Csharp :: how to reference a child object unity 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =