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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:19:48+00:00 2026-05-24T05:19:48+00:00

I do html parsing like this Android HTML Parser Example Now I have a

  • 0

I do html parsing like this
Android HTML Parser Example

Now I have a listView with a searchresult from site.
How do I get the “href=” of this item and then go to this site?

Thanks..

  • 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-24T05:19:48+00:00Added an answer on May 24, 2026 at 5:19 am

    In the below code u can get the href of the element if u pass the element as the argument. Then u can proceed by going to the site.

     public static String getTagValueWithMultiItem(Element eElement){
                     String returnVal = "" ;
                     Node eNode ;
                     int NumOFItem = eElement.getElementsByTagName("link").getLength();
                     for (int y = 0; y < NumOFItem; y++) {
                     eNode = eElement.getElementsByTagName("link").item(y);
                     NamedNodeMap attributes = eNode.getAttributes();
                      for (int g = 0; g < attributes.getLength(); g++) {
                          Attr attribute = (Attr)attributes.item(g);
                                     if(attribute.getNodeName().equals("rel")&&attribute.getNodeValue().equals("alternate"))
                                        {
                                          try { 
                                                returnVal =eNode.getAttributes().getNamedItem("href").getNodeValue();
                                               }  
                                             catch (Exception e) {
                                                returnVal = e.toString();
                                             }
                                         } 
                                      }
                     }
                    return returnVal;    
                 }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am following the suggestion from this question Robust, Mature HTML Parser for PHP
I'm working in Python with HTML that looks like this. I'm parsing with lxml,
Let's say I have some HTML like this: <ol><li>a knock at the door, I'll
I'm parsing a JSON object (from YQL) that includes some null values, like this:
I'm parsing web-page that contains html tags without quotes. Something like this <FONT COLOR=#FF0000>
Hi I'd like to make my own 'parser', e.g: computing (4+(3-4^2))*2 or parsing java,jsf,html
I have an error when parsing an xml document with sax parser in android.
I have a console application which is parsing HTML documents via the WebRequest method
I am parsing the tabular information from the html file with the help of
I'm new to DOM parsing in PHP: I have a HTML file that I'm

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.