I'm trying to distinguish table rows in HTML that just contain links form table rows where text segments and links are presented together, in the same row. I'm using TreeBuilder because I have to know the depth of the diffrent table rows. My problem is telling the diffrence between text segments and links, because text segments aren't seen as elements by TreeBuilder. I'm thankfull for all suggestions to my problem.