html agility pack - HtmlAgilityPack select nodes on first level -
consider following html
<tr> <td>1</td> <td>2</td> <td> <table> <tbody> <tr> <td>3</td> <td>4</td> </tr> <tbody> </table> </td> <td>5</td> </tr> what want here take <td> elements direct descendants main <tr> row. means, want take 1, 2 , 5.
the code using
gridrow.descendants("td") will return <td> elements below main <tr> node.
does htmlagilitypack provide functionality first level descendants (because can't find such method) ?
htmlnode.elements("child_name") looking :
gridrow.elements("td")
Comments
Post a Comment