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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:11:38+00:00 2026-06-04T15:11:38+00:00

Is it possible to parse the XML files from SAX parser without defining the

  • 0

Is it possible to parse the XML files from SAX parser without defining the tags name in Java file? I want to make my code generic so that it can parse any kind of XML file rather than some specific XML files.

  • 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-04T15:11:39+00:00Added an answer on June 4, 2026 at 3:11 pm

    It sounds like you are looking for XML-to-Object “parser” with externalized mapping (e.g. XML, annotations) or an implied convention. Here’s a list to chose from:

    • XStream
    • XMLBeans
    • JAXB
    • JiBX
    • Digester

    you will sure find more. If you would rather parse your XML by hand using SAX (or DOM, or StAX) then you have to know the names of the XML tags you are interested in. You can abstract them out and make your parser configuration driven but if you are constructing objects from your XML data then your time is better spent picking a framework that can do it for you

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

Sidebar

Related Questions

We are parsing an XML file with the SAX parser. Is it possible to
I want to parse an XML file from URL using JDOM. But when trying
Is it possible to parse XML retrieved from a web address into a custom
Possible Duplicate: How to read XML response from a URL in java? I'm trying
Possible Duplicate: Best practices to parse xml files? I have a xml string: <XML>
hi guys,i parse my file xml from my server NSString *theXML = [[NSString alloc]
I am having one XML file and I want to parse only useful data
It is possible to parse some information from the apk file using a tool
Possible Duplicate: Best method to parse various custom XML documents in Java HI all,
We want to be able to create log files from our Java application which

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.