Parses tokens into elements.
        public void ParseTemplate(string templateBody, string templatePath, Dictionary<string, string> defaultNamespaces)
        {
            IEnumerable<Token> tokens = Tokenizer.TokenizeXml(templateBody, templatePath);

            var parser = new ElementParser(tokens, defaultNamespaces);

            foreach (var e in parser.Parse())
                HandleElement(e);
        }
예제 #2
0
        public void ParseTemplate(string templateBody, string templatePath, Dictionary <string, string> defaultNamespaces)
        {
            IEnumerable <Token> tokens = Tokenizer.TokenizeXml(templateBody, templatePath);

            var parser = new ElementParser(tokens, defaultNamespaces);

            foreach (var e in parser.Parse())
            {
                HandleElement(e);
            }
        }