XmlDocument doc = new XmlDocument();
string strxml=@H_502_7@"<item>Client.Xml</item>";
doc.LoadXML(strxml);
可以改为
strxml = @H_502_7@"<" + strxml.Substring(strxml.IndexOf(@H_502_7@'<') + 1);
doc.LoadXml(strxml.Trim());
去除多余字符即可
原文链接:https://www.f2er.com/xml/293670.html