문제

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.

도움이 되었습니까?

해결책

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

if( node.Name == "li" )
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top