I have a question about HTML Agility PAck
I want to get the node collection whose Div's isPublished property is either "False" or "false".
How can I add the OR condition in XPATH. Below is my code, which does not work. It returns null.
HtmlNodeCollection numbers =
htmlDoc.DocumentNode.SelectNodes("//div[@ispublished='false|False']");
Thanks
Try
htmlDoc.DocumentNode.SelectNodes("//div[@ispublished='false' or @ispublished='False']");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With