Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: "OR" condition while selecting attributes

$
0
0
Hi ,

In HAP i found "|" works as "and" condition, then what's the alternative or "or" condition.

eg: i want the list of element which neither have "abc" nor"xyz" as their attributes.

htmldoc.DocumentNode.SelectNodes("//*[not(@abc| @xyz)]");

but this list the element which does not have both "abc" and"xyz"


Any help will be appreciated.

Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>