<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://somelink.com">
XmlDocument docreq = new XmlDocument(); docrev.Load("Mynew.xml"); XmlNode node = docreq.SelectSingleNode("soapenv:Envelope"); node.Attributes[0].Value = "NEWLINK"; using (TextWriter writer = new StreamWriter("Mynew.xml", false, Encoding.UTF8)) docreq.Save(writer);
XDocument xDocument = XDocument.Load("MyXml.xml"); XElement soapenvXElement = xDocument.Descendants().FirstOrDefault(); soapenvXElement.Value = "NEWLINK";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)