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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:17:31+00:00 2026-05-30T10:17:31+00:00

Sometimes I need to parse XML file – and only parse, and I don’t

  • 0

Sometimes I need to parse XML file – and only parse, and I don’t want to do this manually via String.indexOf. So my need would be to use possibly smallest and fast XML parsing library. Unfortunatelly, I don’t know anything similar to GSON (180kb).

I’ve imported dom4j, but after that I’ve got exception:

java.lang.NoClassDefFoundError: org/jaxen/JaxenException

So I’ve added jaxen dependency (maven), and this is very shocking experience: about 7MB dependencies added, the biggest from them xercesImpl and icu4j.

Another guess is Jericho, but this is mostly designed for parsing bad-formed HTML, and it’s over 2MB – surely there could be something smaller available.

So, could you please recommend me some good library? The minimal code size is the most important thing here. At best it should about the size of GSON.

  • 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-30T10:17:33+00:00Added an answer on May 30, 2026 at 10:17 am

    Have a look at NanoXML – download site

    It is a very small DOM-based parser library, I’ve used it in the past and it worked well. It is not necessarily efficient but it is tiny.

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

Sidebar

Related Questions

Sometimes I need to parse string that is CSV, but I am having trouble
I'm running into this situation where I need to parse a String into an
Sometimes I need to insert some similar lines in a file which differ only
In my app I sometimes need to rebuild and repopulate database file. SQLite databse
Sometimes I need to quickly extract some arbitrary data from XML files to put
I want to use XPath (in Java) to parse XML files. However these XML
I'm processing a xml file and sometimes there are iframes and script tags i
Many .NET functions use XmlWriter to output/generate xml. Outputting to a file/string/memory is a
My application expects that it will sometimes try to parse invalid XML documents. I
I am using php to parse an XML file, but I get an error

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.