How to don't parse void tags?

Topics: Developer Forum, User Forum
Sep 30, 2007 at 9:19 PM
Edited Sep 30, 2007 at 9:20 PM
I have parsed some html, in which are table with 3 rows. But the DOM is:

body(1)
---table(6)
------#text(0)
------tr(3)
------#text(0)
------tr(5)
------#text(0)
------tr(3)


where #text(0) - HTMLNode with " " InnerText and " " InnerHtml.

How can I do this: do not parse such "void" nodes?
Coordinator
Nov 17, 2007 at 4:57 PM
This is not directly possible. You can however skip the empty nodes using XPATH, as SelectNodes("//*text() != '');