private void GetNodeText(HtmlNode node, StringBuilder result, HtmlNodeCollection inputs)
{
string text = node.InnerText;
if (!string.IsNullOrEmpty(text))
result.Append(text.Trim());
else
{
if (inputs.Contains(node))
{
HtmlAttribute att = node.Attributes["value"];
if (att != null)
result.Append(" " + att.Value.Trim());
}
}
}