Esempio n. 1
0
        public int XmlParseScript(string path, int isFunction = 0, int isStatement = 0)
        {
            Console.WriteLine("ShellXML is deprecated\nShell2 coming in Shell Alpha Release\n");
            if (isFunction != 0) // call it
            {
                Console.WriteLine($"Parsing ShellXML function at {path}...\n");
            }
            else
            {
                Console.WriteLine($"Parsing ShellXML script at {path}...\n");
            }

            XmlDocument script = ShellCore.XmlOpenFile(path);

            XmlNode script_root = ShellCore.XmlGetRootNode(script, true, "ShellXML", 3);

            XmlNodeList ScriptTokens;

            bool result = ShellCore.XmlCheckForChildNodes(script, true, 4);

            if (result == true)
            {
                ScriptTokens = ShellCore.XmlGetChildren(script_root);
                XmlParseScriptNodes(ScriptTokens);
            }

            return(0);
        }