views:

29

answers:

1

I have code using the Html Agility Pack. There is a line that compares the name of an HTML node to a string containing a pound sign. Does that make sense?

HtmlAgilityPack.HtmlNode node;

...

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

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

Meltdown
Can you post a link to that information?
JoelFan
HtmlNode..::..HtmlNodeTypeNameText Field -> Gets the name of a text node. It is actually defined as '#text'. It is defined in .chm documentation. Give the documentation a try first. ;)
Meltdown