public void LoadXsd(string xsdPath) { try { DataTable = new DataTable(UFile.GetFileNameNoExtension(xsdPath)); DataTable.ReadXmlSchema(xsdPath); } catch (Exception ex) { throw ex; } }
public static DataSet LoadXsd2(string xsdPath) { DataSet dataset = null; try { dataset = new DataSet(UFile.GetFileNameNoExtension(xsdPath)); dataset.ReadXmlSchema(xsdPath); } catch (Exception ex) { throw ex; } return(dataset); }
public static DataTable LoadXsd(string xsdPath) { DataTable table = null; try { table = new DataTable(UFile.GetFileNameNoExtension(xsdPath)); MemoryStream memoryStream = InfinityStreamsManager.ReadStreamFromFile(xsdPath); table.ReadXmlSchema(memoryStream); memoryStream.Close(); } catch (Exception ex) { throw ex; } return(table); }
public static string GetFileNameNoExtension(string url) { return(UFile.GetFileNameNoExtension(UWeb.MapPath(url))); }