[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

XPath to select all nodes below a specified /tr

Posted on 2011-09-15
3
Medium Priority
?
257 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:JustinW
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 36547429
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
 
LVL 1

Author Comment

by:JustinW
ID: 36548362
the second one looks like the first one,
am I missing something?
0
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 2000 total points
ID: 36551731
first one is just child nodes, second one has a double "//" so it looks to nodes at any depth
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question