Example #1
0
 public void addDocument(string text, RawlerBase rawlerTree)
 {
     var d = new Document();
     d.SetText(text);
     d.SetParent(this);
     var tree = rawlerTree.Clone();
     d.AddChildren(tree);
     documents.Add(d);
 }
Example #2
0
        public void addDocument(string text, RawlerBase rawlerTree)
        {
            var d = new Document();

            d.SetText(text);
            d.SetParent(this);
            var tree = rawlerTree.Clone();

            d.AddChildren(tree);
            documents.Add(d);
        }
Example #3
0
        public static string GetText(string text, RawlerBase rawler)
        {
            Document doc = new Document();

            doc.SetText(text);
            rawler.SetParent(doc);
            var last = rawler.GetDescendantRawler().Last();

            rawler.Run();
            return(last.Text);
        }
Example #4
0
        public void addDocument(string text, ICollection<RawlerBase> rawlerTrees)
        {
            var d = new Document();
            d.SetText(text);
            d.SetParent(this);
            foreach (var item in rawlerTrees)
            {
                var tree = item.Clone();
                d.AddChildren(tree);
            }

            documents.Add(d);
        }
Example #5
0
        public void addDocument(string text, ICollection <RawlerBase> rawlerTrees)
        {
            var d = new Document();

            d.SetText(text);
            d.SetParent(this);
            foreach (var item in rawlerTrees)
            {
                var tree = item.Clone();
                d.AddChildren(tree);
            }

            documents.Add(d);
        }