Esempio n. 1
0
        public void RemoveUnwantedTags(TreeRoot root)
        {
            TagCleaner cleaner = new TagCleaner();
            TreeNode   current = root.Child;

            RemoveUnwantedTagChild(current, cleaner, root);
        }
Esempio n. 2
0
 void RemoveUnwantedTagChild(TreeNode node, TagCleaner cleaner, TreeRoot root)
 {
     if (cleaner.TagRemover(node) != 1)
     {
         try
         {
             foreach (TreeNode current in node.Children)
             {
                 RemoveUnwantedTagChild(current, cleaner, root);
             }
         }
         catch
         {
             RemoveUnwantedTags(root);
         }
     }
 }