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

  • Home
  • SEARCH
  • 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 8436943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:18:42+00:00 2026-06-10T07:18:42+00:00

Document doc = Jsoup.connect(studentprofiles).get(); Element tables = doc.select(table); Elements myTdsstudent = tables.select(tr td:eq(1)); I

  • 0
Document doc = Jsoup.connect(studentprofiles).get();
Element tables = doc.select("table");
Elements myTdsstudent = tables.select("tr td:eq(1)");

I am able to get all the details one after another in the eq(1).

In the example:

Table:    
GK   99    
NS   88    
PS   55

I have in HTML Table when I do eq(0) I get GK,NS,PS.
when I do eq(1) I get 99 88 55.

Is there a way so that I can read using JSOUP as

gk=99
ns=88
PS=55

Right now I am getting as 2 different array of strings.

  • 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-10T07:18:43+00:00Added an answer on June 10, 2026 at 7:18 am
    Elements myTdsstudent = tables.select("tr");
    

    now iterate over myTdsstudent and use this

    for (Element myTdsstudentIterator: myTdsstudent) {
        System.out.println(myTdsstudentIterator.select("td:eq(0)") + " = " + myTdsstudentIterator.select("td:eq(1)"));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Document doc = Jsoup.connect(http://reviews.opentable.com/0938/9/reviews.htm).get(); Element part = doc.body(); Elements parts = part.getElementsByTag(span); String attValue;
I have the following code: String website = http://www.somewebsite.com/; Document doc = Jsoup.connect(website).get(); Elements
I'm executing this code: //doc = Jsoup.connect(data[0].getURL()).get(); Document doc = Jsoup.connect(url).post(); and am getting
I use Jsoup to post a form like: Document doc = Jsoup.connect(http://www.example.com/post.php) .data(titolo, titolo)
package info.testing; import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.select.Elements; import android.app.Activity; import android.os.Bundle;
I am using a query like this in jSoup: Document doc = Jsoup.connect(urlString).timeout(1000).post(); It
I want to select all comments from a document using JSoup. I would like
How to get thumbs document (doc, docx, pdf, pptx, ppt,.....)? May be use C#,
var doc = w.document; doc.open('application/CSV','replace'); doc.charset = utf-8; doc.write(all,hello); doc.close(); if(doc.execCommand(SaveAs,null,file.csv)) { window.alert(saved );
I parse all TD elements of a webpage. There is 1 TD element which

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.