c# - HTML- Xpath Query to Select only node having style attribute and except OL node -


i using htmlagilitypack. need write xpath query expression select nodes having "style" attribute except "ol" i.e. order list node ? please answer ?

try this

doc.documentnode.selectnodes("//body/*[not(self::ol)][@style]"); 

Comments