All pastes #394329 Raw Edit

reznor

public text v1 · immutable
·published 2007-03-14 06:36 UTC
rendered paste body
        /// <summary>
        /// Reads the XML file defied in the GlobalConstants Class into 
        /// a DataSet to be passed back to the caller.
        /// </summary>
        /// <returns>DataSet of AllProductData</returns>
        public static DataSet readAllProductData()
        {
            try
            {
                DataSet XmlDataSet = new DataSet();
                XmlDataSet.ReadXml(GlobalConstants.XMLDataFile);
                return XmlDataSet;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }