Exemplo n.º 1
0
        public void LoadXsd(string xsdPath)
        {
            try
            {
                DataTable = new DataTable(UFile.GetFileNameNoExtension(xsdPath));

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