I’m trying to retrieve the content of the cells under “Pictograms, Signal Word Code(s)” in the orange table using XPath. My XPath query looks like this:
//*/table[@class=“CLPtable taglib-search-iterator”]/descendant::td[contains(@class, ‘centerText cli-vertical-align-center’) and contains(text(), ‘GHS’)]
This query works as expected in the Elements Console in Chrome (proper content highlighted, but when I retrieve the page with the Palladian HTTPRetrieve / HTML Parser, followed by the XPath node, I get an empty Collection cell.
Other, similarly formatted queries retrieve the right content into a Collection cell.
Thanks, but the issue is, I need to match all cells under the Pictograms,… column, and depending on the page I call, this may be one cell, or 10, or whatever, so the query must be generic enough.
@umutcankurt Thanks, but again, this is not the information I need. Both first queries (Test3 and Title) return the right information (as seen in your screenshot above). The query that does not return the proper information is the one called GHS. In Chrome, it identifies the proper content but in KNIME it returns an empty collection.