m trying to list all nodes in the HTML form dynamically using HTML agility pack, meaning that I don't know the names of the Attributes and the input names. The problem is when I want to get the label corresponding to each input.
<form name="input" action="html_form_action.asp" method="get">
Username: <input type="text" name="user" />
<input type="submit" value="Submit" />
So here I want to write Username then the input, it seems really obvious in this example but sometimes they're not direct siblings, there would be many hidden inputs, or other tags.
<input type=hidden name="startDate">
<TR> <TD bgColor=#008088 colSpan=2 class="headfont">
<FONT color=#FFFFFF> <B>* Enter ur username and password</B> </FONT>
<TD bgColor=#9ccdcd class="datafont"><FONT color=black>Username</FONT></TD>
<TD bgColor=#9ccdcd class="datafont">
<INPUT tabIndex=1 name=stuNum
Am using C# winforms in my project .
I have few ideas but they will take lots of time,so I thought since am new to HTML agility pack there would be a way or some shortcut to get it,,,Any suggestions?