S
shukyh
Hi All
i have a XML file with 12 element named "device", and attribute named
"project". i wanted to change only the value of one attribute. i tried:
XmlNodeList nList = doc.GetElementsByTagName("device");
foreach (XmlNode node in nList)
{
node.Attributes[@"project"].InnerXml = "aaa";
}
but this modified the attribute in all 12 elements, and not in the
specific node.
what can i do?
thanks
i have a XML file with 12 element named "device", and attribute named
"project". i wanted to change only the value of one attribute. i tried:
XmlNodeList nList = doc.GetElementsByTagName("device");
foreach (XmlNode node in nList)
{
node.Attributes[@"project"].InnerXml = "aaa";
}
but this modified the attribute in all 12 elements, and not in the
specific node.
what can i do?
thanks