[..] string oldname = nampold.Text; string newname = namp.Text; foreach (XmlNode node in nodeList) { string currentname = node.Attributes["name"].Value; if (currentname == oldname) { node.Attributes["name"].Value = newname; // break; } } doc.Save("C:/net.xml");
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<?xml version="1.0" encoding="utf-8"?> <netpdl> <format> </format> <format> </format> <format> </format> </netpdl>