using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Xml; using System.Xml.Schema; using System.Collections;
/**//// <summary> /// ProXML 的摘要说明 /// </summary> public class ProXml { public ProXml() { // // TODO: 在此处添加构造函数逻辑 // } /**//// <summary> /// 获得xsd文件路径 /// </summary> public static string GetSchemaPath { get{ return HttpContext.Current.Request.PhysicalApplicationPath + "App_Data\\system\\publish.xsd"; } } /**//// <summary> /// 获理节点 /// </summary> /// <returns></returns> public static System.Collections.Generic.List<XmlSchemaElement> GetDatas() { XmlSchemaSet xsSet = new XmlSchemaSet(); xsSet.Add("http://www.w3.org/2001/XMLSchema", GetSchemaPath); xsSet.Compile();