开发者

HTMLNode.Name containing pound sign in HtmlAgilityPack?

I have code using the Html Agility Pack. There is a line that compares the name of an HTML node to a string c开发者_C百科ontaining a pound sign. Does that make sense?

HtmlAgilityPack.HtmlNode node;

...

if (node.Name == "#text") ...


Yes it does.
Is is a Text Node. Because it is not contained by a < and a > .

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜