public static string GetXmlValue(string ID, string Root, string name) { try { ROYcms.Common.XmlControl XmlControl = new ROYcms.Common.XmlControl(HttpContext.Current.Server.MapPath("~/APP_XML/Xml/" + Root + "/" + ID + ".xml")); return(XmlControl.GetText("ROYcms/XML/" + name)); } catch { return(""); } }
public static string GetValue(int ID, string name) { try { ROYcms.Common.XmlControl XmlControl = new ROYcms.Common.XmlControl(HttpContext.Current.Server.MapPath("~/APP_data/Class/" + ID + ".xml")); return(XmlControl.GetText("ROYcms/Class/" + name)); } catch { return(""); } }
/// <summary> /// Gets the organization value. /// </summary> /// <param name="userid">The userid.</param> /// <param name="name">项的名称 The name.</param> /// <returns></returns> public static string GetUserValue(int userid, string name) { try { ROYcms.Common.XmlControl XmlControl = new ROYcms.Common.XmlControl(HttpContext.Current.Server.MapPath("~/APP_XML/UserXml/" + userid + ".xml")); return(XmlControl.GetText("ROYcms/User/" + name)); } catch { return(""); } }