EdsNavParser - does stuff with Esd Navigations (in xml)
コード例 #1
0
        protected void LoadNav(string filename)
        {
            // import the LGNL from /nav/lgnl.xml
            if (File.Exists(Request.MapPath(filename)))
            {
                // do the import...
                EsdNavParser parser = new EsdNavParser();
                parser.Load(Request.MapPath(filename));
                parser.ParseNav(false);

                navstatus.Text =
                    string.Format("Import Completed... {0} Page Created <em>{1}</em>", parser.NodeCount, parser.LastError);
            }
        }
コード例 #2
0
        protected void LoadNav(string filename)
        {
            // import the LGNL from /nav/lgnl.xml
            if (File.Exists(Request.MapPath(filename)))
            {
                // do the import...
                EsdNavParser parser = new EsdNavParser();
                parser.Load(Request.MapPath(filename));
                parser.ParseNav(false);

                navstatus.Text =
                    string.Format("Import Completed... {0} Page Created <em>{1}</em>", parser.NodeCount, parser.LastError);
            }
        }
コード例 #3
0
        protected void LoadESDNav(string navFile)
        {
            string filepath = Request.MapPath(navFile);

            if (File.Exists(filepath))
            {
                EsdNavParser parser = new EsdNavParser();
                parser.Load(filepath);
                parser.ParseNav(false);

                navstatus.Text =
                    string.Format("Import completed : {0} pages created <em>{1}</em>", parser.NodeCount, parser.LastError);
            }
            else
            {
                navstatus.Text = "Import failed, we couldn't find the import file";
            }
        }
コード例 #4
0
        protected void LoadESDNav(string navFile)
        {
            string filepath = Request.MapPath(navFile);

            if ( File.Exists(filepath) )
            {
                EsdNavParser parser = new EsdNavParser();
                parser.Load(filepath);
                parser.ParseNav(false);

                navstatus.Text =
                    string.Format("Import completed : {0} pages created <em>{1}</em>", parser.NodeCount, parser.LastError);

            }
            else
            {
                navstatus.Text = "Import failed, we couldn't find the import file";
            }
        }