DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Building Scalable Real-Time Apps with AstraDB and Vaadin
Register Now

Trending

  • Revolutionizing Algorithmic Trading: The Power of Reinforcement Learning
  • SRE vs. DevOps
  • Top 10 Engineering KPIs Technical Leaders Should Know
  • Reactive Programming

Trending

  • Revolutionizing Algorithmic Trading: The Power of Reinforcement Learning
  • SRE vs. DevOps
  • Top 10 Engineering KPIs Technical Leaders Should Know
  • Reactive Programming
  1. DZone
  2. Coding
  3. Languages
  4. Spoilt For Choice: How You Voted in the XML Library Poll

Spoilt For Choice: How You Voted in the XML Library Poll

James Sugrue user avatar by
James Sugrue
CORE ·
May. 05, 10 · Interview
Like (0)
Save
Tweet
Share
5.39K Views

Join the DZone community and get the full member experience.

Join For Free

Last week I put together a poll to find out what people use to handle XML in their Java applications these days. Thanks to the participation of those who voted and left comments, I got a good picture of what libraries and techniques people are utilizing to handle XML in Java.

First to the poll results, from almost 800 people there was a wide variety of methods used. It seems that the days of DOM and SAX being the predominant choices are almost gone, with 39% of developers taking advantage of JAXB. 

 

Reading through the comments here it was great to see people taking advantages of other languages on the JVM for XML, such as Groovy and Scala.  Apart from those who used different languages like this, here is a complete list of other frameworks that you recommended for XML processing: 

  • dom4j
    Support for DOM, SAX and JAXP. Seems full featured to me
  • xstream
    Serialize to and from XML
  • VTD-XML
    Fast, memory efficient XML processor 
  • Joost
    Implementation of Streaming Transformations for XML that builds on top of SAX.
  • SimpleXML
    Looks like a really straightforward way to handle XML. 
  • XMLBeans
    Useful XML binding-to-beans option
  • StAX
    Streaming API for XML implementation of the JSR-173 specification
  • JDOM
    A Java DOM implementation
  • Castor
    A reliable XML binding solution, with tools to generate objects from schemas, similar to JAXB.
  • Spring OXM
    Provides Object - XML mapping support.
  • Apache Digester
    Provides a configuration of an object-xml mapping module for reading and using XML configurations.
  • WAX
    Writing API for XML. Similar to SAX, except it allows writing back to XML.

That's a pretty comprehensive rundown of frameworks, and one which leads to a very valid point from one reader:

Seriously, people, where's this fascination in Java coming from? How many home-grown loggers, web frameworks, ORM solutions and XML parsers do we really need? 

On one hand, all of these frameworks can be a good thing - there's a lot of choice out there. But on the other hand, wouldn't it be overwhelming if you were to start working in Java and have all of these options presented to you, trying to work out which best suits your needs.  

XML Library

Opinions expressed by DZone contributors are their own.

Trending

  • Revolutionizing Algorithmic Trading: The Power of Reinforcement Learning
  • SRE vs. DevOps
  • Top 10 Engineering KPIs Technical Leaders Should Know
  • Reactive Programming

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: