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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:51:48+00:00 2026-06-15T08:51:48+00:00

I would like to retrieve certain information from html using Jsoup. These are the

  • 0

I would like to retrieve certain information from html using Jsoup.

These are the items I’d like to retrieve:

<td class="text" nowrap valign="top">&#x2022; 2012年05月14-23日</td>
<td class="text" valign="top"><a href="/events/2012/1205142301.pdf" target="new" class="text">北京、湖南商务考察团</a></td>

I managed to retrieve the 2nd item, which contains a URL and a Chinese title but not the first item. can someone help?

I used the following code to retrieve the 2nd item:

Element image = doc.select("td.text a").get(c);
String v = image.attr("href");
url = ("http://www.s-cba.org.sg" + v);
Log.d("url", url);

Element eventName = doc.select("td.text a").get(c);
event = eventName.text();
Log.d("event", event);
  • 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-15T08:51:50+00:00Added an answer on June 15, 2026 at 8:51 am
    Element link = doc.select("td.text a").first();
    Element dateTd = link.parent().previousElementSibling();
    
    String url = link.attr("href")
    String title = link.text();
    String date = dateTd.text();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to retrieve a certain tag element with its attributes from the
I would like to retrieve the AppSetting key from the assembly config file called:
I'm using the python suds module and would like to retrieve the response headers
I have 2 tables that I need to get information from, and would like
I would like to write an simple application able to retrieve some certain data
I want to collect certain information from people/devices via email. These emails will never
I would like to retrieve the records in certain dates after d/mm/yyyy , or
I am new to using LINQ. I would like to use LINQ to retrieve
I would like to retrieve the contents of a file, filter and modify them
I would like to retrieve an ordered query result, but I need to have

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.