Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine the htmlnode name/type (eg li)

How does one know if the HtmlNode I'm working with is an <li>? I know the NodeType is an Element but how do you determine if that is an <li>

Let me know if there's any more information you need.

like image 887
shadonar Avatar asked Mar 28 '14 15:03

shadonar


1 Answers

You can check it like this, just use the Name property:

if( node.Name == "li" )
like image 146
Selman Genç Avatar answered Oct 04 '22 03:10

Selman Genç