62,046
社区成员
发帖
与我相关
我的任务
分享
public static string WebSiteXml(string XmlPath, string XmlName)
{
string path = HttpContext.Current.Server.MapPath(XmlPath);
XmlDocument xml = new XmlDocument();
xml.Load(path);
XmlNode node = xml.SelectSingleNode(XmlName);
return node.InnerText;
}
bool AAA = Convert.ToBoolean(BbsyxConfig.WebSiteXml("/Inc/ABC.xml", "/xmlhtml/AAA"));