我需要管理'AccountText'變量,所以如果我傳遞一個特殊字符的值例如「MC & CO」,我不應該得到一個錯誤。處理提取xml中的特殊字符
var fetchXml = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>" +
"<entity name='contact'>" +
"<attribute name='contactid' />" +
"<filter type='and'><condition attribute='parentcustomerid' operator='eq' name='" + AccountText + "' value='" + AccountID + "' /></filter>" +
"</entity>" +
"</fetch>";
謝謝Ar上,但我想要更通用的東西,以處理所有的考驗。 – user2173466
我沒有使用.net/c#。 – user2173466
您可能還想標記您正在使用的語言。 – Aron