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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:32:04+00:00 2026-06-01T07:32:04+00:00

I have an html table with an ID of thetable . It has (according

  • 0

I have an html table with an ID of thetable. It has (according to FireBug), an unnamed TBODY tag, and an unnamed TR tag. The three TD tags inside that I want to access are unnamed. Is there any CSS selector that I can use to reference these unnamed tr tags?

I’ve tried:

table#thetable:nth-child(1)

But this does not select for those tags.

I’m using jsoup.org to pull this data into strings. I’d like to take the text of each TD in the table (of which I know the name) and put all that into an array.

Something like this:

// Pseudocode for all the TDs into an array
Elements strings = doc.select("table#thetable: children");
  • 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-01T07:32:05+00:00Added an answer on June 1, 2026 at 7:32 am

    If you’re simply looking to get all your td elements, this should be enough:

    Elements elems = doc.select("table#thetable td");
    

    Then iterate elems, retrieve the text from your tds and put them in your array.

    Also, you should probably use an array list instead of an array if you don’t know or can’t control how many cells your table will have:

    Elements elems = doc.select("table#thetable td");
    List<String> strings = new ArrayList<String>();
    
    for (Element e : elems) {
        strings.add(e.text());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 Html table . the first has a div inside a td
So, here's the deal. I have an html table that I want to populate.
I have an HTML table with an object element and a span tag inside
I have an html table in an aspx page (C#) that has columns like
I have an HTML table 2x2. In that table, I want the first row
I have a html-table, that has a header, that is supposed to be clickable
I have an HTML table that contains some 500 rows. I have an input
I have this html table: <table class=table-all> <tbody> <tr> <td>BISFENOLO</td> <td>Bisfenolo-AF 10/10</td> <td class=right>€
I have an HTML table which has incrementing numbers starting from 0 in its
I have a HTML table inside which I have a submit button. Now, I

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.