XPath to select all nodes below a specified /tr

I'm trying to cobble together an xpath that will return all rows
below a certain point in the table.

I want all nodes below where this hits.
.//*[@id='DDATransactionTable']/tbody/tr[contains(.,'Posted T')]

Open in new window


Ideas?
Thanks,
-JW
LVL 1
JustinWAsked:
Who is Participating?
 
Geert BormansConnect With a Mentor Information ArchitectCommented:
first one is just child nodes, second one has a double "//" so it looks to nodes at any depth
0
 
Geert BormansInformation ArchitectCommented:
If you want all child nodes just do
.//*[@id='DDATransactionTable']/tbody/tr[contains(.,'Posted T')]/node()

If you want all nodes below that point
.//*[@id='DDATransactionTable']/tbody/tr[contains(.,'Posted T')]//node()
0
 
JustinWAuthor Commented:
the second one looks like the first one,
am I missing something?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.