Exemplo n.º 1
0
        public static HtmlNodeCollection SelectAllNodes(this HtmlNode node, string selection)
        {
            if (string.IsNullOrWhiteSpace(selection))
            {
                return(null);
            }

            HtmlNodeCollection result = null;

            foreach (var item in selection.Split(';'))
            {
                result = result.AddRange(node.SelectNodes(item));
            }

            return(result);
        }