public CreateNavigator ( ) : |
||
return |
public XPathNavigator CreateNavigator()
{
return new HtmlNodeNavigator(_ownerdocument, this);
}
private void RemoveXPaths(ConfigSection config, HtmlAgilityPack.HtmlNode parentNode) { if (parentNode != null && config != null && config.RemoveXPathRules != null && config.RemoveXPathRules.Count > 0) { foreach (var removeXPathRule in config.RemoveXPathRules) { var navigator = parentNode.CreateNavigator(); var nodes = navigator.Select(removeXPathRule); foreach (HtmlNodeNavigator node in nodes) { node.CurrentNode.Remove(); } } } }