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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:01:01+00:00 2026-05-25T22:01:01+00:00

I need to process some HTML pages in my Android App and I would

  • 0

I need to process some HTML pages in my Android App and I would prefer to use XPath for extracting the relevant information. For regular J2SE there are a lot of possible implementations for parsing regular HTML into a org.w3c.dom.Document:

  • jTidy
  • TagSoup
  • Jericho
  • NekoHTML
  • HTMLCleaner

(List may be incomplete – it has been extracted from https://stackoverflow.com/questions/2009897/recommend-an-alternative-to-jtidy)

But it is very complicated to estimate if and how good those libraries work on Android (library size, cpu and memory consumption).

Based on your experience – what is the library of your choice for Android?

  • 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-25T22:01:02+00:00Added an answer on May 25, 2026 at 10:01 pm

    OK, looks like no-one can answer that question – then I have to check it myself.

    jTidy

    I downloaded the latest jTidy sources, compiled them and added the created jar file as library to my Android app. There were no problems using jTidy in my App (emulator and real phone). At runtime jTidy also works fine – but it seems that it is not a good fit for the limited Android environment – it works really slow. Looking at the Logcat output even parsing a ~10kb html file causes the garbage collector to work heavily.

    HTMLCleaner

    From my experience HTMLCleaner works also nice on Android; the library size is relatively small (106KB for v2.2). However the parsed DOM it creates is not as expected – HTMLCleaner inserts for example additional <span> elements into the DOM. This may be OK if you want to display it as an HTML file but for my use case – extrecting information via XPath expressions – this is a no-go!

    TagSoup

    Not tested

    Jericho

    Not tested

    NekoHTML

    Not tested

    JSoup

    Not tested

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to do some process injection using C++ but I would prefer to
i'm a beginner to php. i need to use php function which process some
I need execute some code before Windows shutdown process each time. So, I want
We need to identify and then process switch/case statements in code based on some
I need to add some lightweight syntactic sugar to JavaScript source code, and process
I need to process a HTML content and replace the IMG SRC value with
We are in the process of importing some old pages from our legacy website
I need to process a large file, around 400K lines and 200 M. But
I need to process the incoming predefined ASN format data(coming from verity of clients
I need to process DICOM formatted medical images and visualize them in 3D, also

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.