I need to remove link inside result tag by code.
Here is my xml file:
<?xml version="1.0" encoding="utf-8"?>
<result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.cfhdocmail.com/TestAPI2/Result.xsd https://www.cfhdocmail.com/TestAPI2/Result.xsd" xmlns="https://www.cfhdocmail.com/TestAPI2/Result.xsd">
<data>
<key>MailingGUID</key>
<value>3699f54b-a05c-45d9-9f91-2d65fea9e2f3</value>
</data><data>
<key>OrderRef</key>
<value>52177</value>
</data>
</result>
But i want to empty result tag by code.I have used this code:
XmlDocument xml = new XmlDocument();
xml.Load(Server.MapPath("~/XMLFile1.xml"));
// var xdoc = XDocument.Load(xmlFile);
var configuration = xml.DocumentElement.SelectSingleNode("result");
if (configuration != null)
{
// code...
}
I need to remove links inside result tag.