結果タグ内のリンクをコードで削除する必要があります。
ここに私のxmlファイルがあります:
<?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>
しかし、コードで結果タグを空にしたい.私はこのコードを使用しました:
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...
}
結果タグ内のリンクを削除する必要があります。