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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:04:47+00:00 2026-05-27T02:04:47+00:00

i want to parse 1 url and afterwords i want to access some data

  • 0

i want to parse 1 url and afterwords i want to access some data from that.

try {
        Document doc = Jsoup.connect("http://abc.com/en/currency/default.aspx").get();//abc is for example as i cant put site name
        Elements td = doc.select("ctl00_ContentPlaceHolder1_currencylist_rptCurrencyList_ctl01_trList"); //this is the name of table row in html page i will show html page snippet also
        String temp=td.val();
        info.setText(temp);
    } 
     catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } 

snippet of html page which i want to parse is as follows

       <tr id="ctl00_ContentPlaceHolder1_currencylist_rptCurrencyList_ctl01_trList">
<td width="400px" class="CurrencyListItems">             
         UK POUND
         </td>
<td width="60px;" class="CurrencyListItemsIN" align="center">
         5.72
         </td>
<td width="150px;" class="CurrencyListItemsLast">
           <table cellspacing ="0" cellpadding ="0" width="100%">
                   <tr>
                     <td class="CurrencyListBANKNOTES" align="center">                         
                     5.625
                     </td>
                     <td class="CurrencyListBANKNOTES2" width="75px" align="center">

                     5.75
                     </td>
                   </tr>
            </table>
         </td>

i want from above html UK pound ,5.625,5.75
i tried above code,but the thng is it is not parsing URL only its jus coming out if try

  • 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-27T02:04:48+00:00Added an answer on May 27, 2026 at 2:04 am

    try this:

    Element tr = doc.getElementById("ctl00_ContentPlaceHolder1_currencylist_rptCurrencyList_ctl01_trList");
    

    try

    String contents = tr.text().trim();
    contents = contents.replaceAll("\\s+"," "); 
    contents = contents. replaceAll("\\<.*?>","-");
    String []values = contents.split("-");
    

    or

    Elements elements = tr.select("*");
    for (Element element : elements) {
        System.out.println(element.ownText());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to parse the url from a String in android. The example String
I want to get Get Domain from URL and be output: http://www.domain.com/ I found
I am new to iphone development .I want parse an image url from a
I am new to iphone development .I want parse an image url from a
I want to parse the following url: http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=nucleotide&id=224589801 As a result I came up
I want to parse query part from url, this is my code to do
I want to parse the access_token from the url which facebook login will redirect
I want to parse a specific url variable key value from a url stored
I have a URL like this: http://192.168.0.1:8080/servlet/rece I want to parse the URL to
I want to parse a descriptive-style URL with slashes (such as server/books/thrillers/johngrisham/thefirm ), in

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.