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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:39:34+00:00 2026-05-26T04:39:34+00:00

I need to use a xml pull parser. I can find stax-api.jar which seems

  • 0

I need to use a xml pull parser. I can find stax-api.jar which seems to be already part of com.sun.xml.* and it seems that there is already something stax related implemented.

com.sun.xml unfortunately has no sources in JDK 6, so I can’t tell.

Also there are xmlpull, stax.codehaus.org and apache axiom, that kinda implements stax-api. stax.codehaus.org seems to be a stax reference implementation. Xmlpull seems to be done by the same people as the reference implementation and Apache Axiom seems to be a StAX based parser that was created for Apache Axis2.

Could you please clarify what are the main differences, what API to use and when would you use one of these implementations and why ?

Edit: Before you decide to close this question, notice that xmlpull.org and stax.codehaus.org releases are pretty old (5 years) and one really can’t say if the stax parser implementation is part of sun.com.xml.*.
I’d just need someone with pull parser experience to tell me, what to use and why.

For instance, Apache Abdera project (I’m parsing atom feeds too) is using Axiom implementation that seems to be implementing its Axiom-api and also geronimo-stax-api_1.0_spec

  • 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-26T04:39:34+00:00Added an answer on May 26, 2026 at 4:39 am

    Aside from pointing out that JDK/JRE bundles Sun’s SJSXP which works ok at this point, I would recommend AGAINST using Stax ref impl (stax.codehaus.org) — do NOT use it for anything, ever. It has lots of remaining bugs (although many were fixed, initial versions were horrible), isn’t particularly fast, doesn’t implement even all mandatory features. Stay clear of it.

    I am partial to Woodstox, which is by far the most complete implementation for XML features (on par with Xerces, about the only other Java XML parser that can say this), more performant than Sjsxp, and all around solid parser and generator — this is why most modern Java XML web service frameworks and containers bundle Woodstox.

    Or, if you want super-high performance, check out Aalto. It is successor to Woodstox, with less features (no DTD handling) but 2x faster for many common cases.
    And if you ever need non-blocking/async parsing (for NIO based input for example), Aalto is the only known Java XML parser to offer that feature.

    As to Axiom: it is NOT a parser, but tree model built on top of Stax parser like Woodstox, so they didn’t reinvent the wheel. XmlPull predates Stax API by couple of years; basically Stax standardization came about people using XmlPull, liking what they saw, and Sun+BEA wanting to standardize the approach. There was some friction in the process, so in the end XmlPull was not discontinue when Stax was finalized, but one can think of Stax as successor — XmlPull is still used for mobile devices; I think Android platform includes it.

    (disclaimers: I am involved in both Aalto and Woodstox projects; as well as provided more than a dozen bug fixes to both SJSXP and Stax RI)

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

Sidebar

Related Questions

In C#, I need to create XML files for use with Ivy and NAnt,
I need to use NSImage which appears need to be imported from <AppKit/AppKit.h> .
I need to use a datetime.strptime on the text which looks like follows. Some
I´ve searched and didnt find which ports does XMPP uses. I need to implement
I need to pull out all of the NodeGroup elements out of an XML
I need to use XML file to store each key/value pair used by my
I'm trying to use JAXB to pull some elements from a large XML file
I'm trying to use getResources().getXml so that I can access an XML file in
I'm trying to use Apache Digester (V3) to process an XML file which contains
I need to use xml as database in php. Till now i used mssql,mysql

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.