Exemplo n.º 1
0
        /// <summary>
        /// ����Ʈ�� ó���� �����Ѵ�
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public static ISitemap ReadSitemap(string path)
        {
            XmlTextReader reader		= null;
            try
            {
                reader			= new XmlTextReader(path);
                ISitemap root	= new Sitemap();

                root.ReadXml( reader );

                return root;
            }
            catch(Exception ex)
            {
                throw ex;
            }
            finally
            {
                reader.Close();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 사이트맵 처리를 시작한다
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public static ISitemap ReadSitemap(string path)
        {
            XmlTextReader reader = null;

            try
            {
                reader = new XmlTextReader(path);
                ISitemap root = new Sitemap();

                root.ReadXml(reader);

                return(root);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                reader.Close();
            }
        }