public void LoadXsd(string xsdPath)
        {
            try
            {
                DataTable = new DataTable(UFile.GetFileNameNoExtension(xsdPath));

                DataTable.ReadXmlSchema(xsdPath);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 public static string GetFileNameNoExtension(string url)
 {
     return(UFile.GetFileNameNoExtension(UWeb.MapPath(url)));
 }