11

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.

Erik Philips
  • 53,428
  • 11
  • 128
  • 150
shadonar
  • 1,114
  • 3
  • 16
  • 40

1 Answers1

23

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

if( node.Name == "li" )
Selman Genç
  • 100,147
  • 13
  • 119
  • 184