Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9005217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:05:07+00:00 2026-06-16T01:05:07+00:00

i want to exclude the IMG Values in this table: <table class=info> <tbody> <tr><th

  • 0

i want to exclude the IMG Values in this table:

<table class="info">
 <tbody>
  <tr><th class="round-top" colspan="2">Status</th></tr>  
  <tr class="even">
    <td class="key">Schaltprogramm aktiv</td>
    <td class="value"><img height="15" src="./pics/ste-symbol_an-97b765.png"></td>
  </tr>
 </tbody>
</table>  

I want to exclude the values in this table:

<table class="info">
 <tbody>
  <tr><th class="round-top" colspan="2">Warmwasser</th></tr>  
  <tr class="even">
    <td class="key">WW-Isttemp.</td>
    <td class="value">49,0 °C</td>
  </tr>
  <tr class="odd">
    <td class="key round-leftbottom">WW-Solltemp.</td>
    <td class="value round-rightbottom">46,5 °C</td>
  </tr>
</tbody></table>  

Here are my poorly test:

$nodelist = $xpath->query( "//tr/td[substring(@class,1,5)='value']" );
$imgs = $xpath->query("//table[@class='info']/tr/td/img");

What must i do to exclude the IMG Values in the variable “nodelist”?

Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:05:08+00:00Added an answer on June 16, 2026 at 1:05 am

    I think (but am not certain) that you want $nodelist to contain all the td elements whose class attribute begins with the string value but not if they contain an img element.

    If that’s a correct interpretation of your question, change

    $nodelist = $xpath->query( "//tr/td[substring(@class,1,5)='value']" );
    

    to

    $nodelist = $xpath->query( "//tr/td[substring(@class,1,5)='value'][not(img)]" );
    

    I’m not clear what it is you want to do about the temperature values in your second sample table; you might want to edit the question to make clearer whether you want to retrieve them or not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to exclude a field using Dozer like this : <mapping> <class-a>com.core.model.Model</class-a> <class-b>com.core.model.ModelIS</class-b>
I want to exclude a particular method of a class from java compilation. For
This regular expression is for a MySQL query. I want to exclude the following
I want to exclude first and second element from jquery selector. I tried this:
I want to implement this <img src=<?php echo z_taxonomy_image_url($cat->term_id); ?> /> into the following
I want to grab text inside a div element like this : <div class='someclass'>
now i'm importing this directory Dir[#{Rails.root}/app/{views,controllers}/**/**/**/**] but i want to exclude one directory in
I want to exclude files from being reported by find using a regex. This
I want to exclude the following characters from my string: \-- ' < >
I want to exclude spaces when validating a textbox in vb.net. Here is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.