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 3800484
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:54:00+00:00 2026-05-19T13:54:00+00:00

Viewing source, I have table data formatted exactly like this: <tr class=even> <td>apple</td> <td>pear</td>

  • 0

Viewing source, I have table data formatted exactly like this:

  <tr class="even">
    <td>apple</td>
    <td>pear</td>
    <td>orange</td>
    </tr>
    <tr class="odd">
    <td>apple</td>
    <td>pear</td>
    <td>&nbsp</TD>
    </tr>
  <tr class="even">
    <td>apple</td>
    <td>pear</td>
    <td>orange</td>
    </tr>

How would I go about not matching the <td> containing &nbsp in all rows where it occurs?

  • 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-05-19T13:54:01+00:00Added an answer on May 19, 2026 at 1:54 pm

    The entity &nbsp; isn’t something that XPath knows about — it is best to use its equivalent (self-defining) character entity &#xA0;

    To select all td s of a top element – table, that do not contain &nbsp; use:

     /table/tr/td[not(contains(., '&#xA0;'))]
    

    To select all rows of this table such that none of their td children contains &nbsp; use:

     /table/tr[not(td[contains(., '&#xA0;')])]
    

    To select all td children of all rows of this table such that none of their td children contains &nbsp; use:

     /table/tr[not(td[contains(., '&#xA0;')])]/td
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem using HtmlDataTable for viewing data from database. When I create
I have the standard XAMPP installation on win7 (x64). Having had my share of
All I have signed all the jar files including appletviewer.jar also . i am
I have a list of events which are seperated by month and year (Jun
We have a need to convert MS Office documents to PDF real time when
I am trying to start programming in PHP. I found this example Hello, World
Hello all I am trying to work through (learn) MVC3 and I was playing
I'm reaching the climax of my final year programming project, which is written in
I'm working on a feature that will allow a user to click onto a
Some info: I'm 4th year software engineering student, I know C/C++, Java, Ruby, Haskell,

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.