Here is what the context : I use HTMLAgilityPack to select P node like this :
var paragraphe = html.DocumentNode.SelectNodes(".//p[not(descendant::p)]");
Then using a for loop, I you like to test for each time, if the parent of this DOM element is a DIV and contains a specific attribute such as : div[@edth_correction='N']
But I have no idea how to get the parent node, I have already written all the code for the work I have to do.
I know that I can do something like this : paragraphe[i].ParentNode.Attributes.Equals()
but I have no idea what to write in this Equals and if it is what I have to use for my case.