public SimpleHtmlNode SelectOne([NotNull] string xpath)
 {
     return(Wrap(myNode.SelectSingleNode(XPath.Resolve(xpath))));
 }
Beispiel #2
0
 public ApiNode SelectOne([NotNull] string xpath)
 {
     return(Wrap(node.SelectSingleNode(XPath.Resolve(xpath))));
 }
        public SimpleHtmlNode[] SelectMany([NotNull] string xpath)
        {
            var nodes = myNode.SelectNodes(XPath.Resolve(xpath));

            return(nodes?.Select(Wrap).ToArray() ?? EmptyArray <SimpleHtmlNode> .Instance);
        }
Beispiel #4
0
        private IEnumerable <ApiNode> SelectMany([NotNull] string xpath)
        {
            var nodes = node.SelectNodes(XPath.Resolve(xpath));

            return(nodes?.Select(Wrap) ?? new ApiNode[0]);
        }