Example #1
0
        private static void ExecuteVisitor()
        {
            var htmlDocument = new HtmlDocument();

            htmlDocument.Add(new AnchorNode());
            htmlDocument.Add(new HeadingNode());
            //var highlightOperation = new HighlighOperation();
            var textOperation = new PlainTextOperation();

            htmlDocument.Execute(textOperation);
        }
Example #2
0
        public static void Run()
        {
            var document = new HtmlDocument();

            document.Add(new HeadingNode());
            document.Add(new AnchorNode());

            var highlightOperation = new HighlightOperation();

            document.Execute(highlightOperation);

            var plainTextOperation = new PlainTextOperation();

            document.Execute(plainTextOperation);
        }