my dog learned polymorphism
The moose likes XML and Related Technologies and the fly likes What's the current Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "What Watch "What New topic

What's the current "best" for parsing XML?

Lisa Modglin
Ranch Hand

Joined: Oct 28, 2003
Posts: 46
For reasons I'm not going to go into, we cannot make a database table to hold permission info at this time. So, I decided to make an XML document that will represent my future database info. The Java classes that build the page need to read in the XML document and lookup the nodes pertinent for that page. What is the suggested parser for this use? I used Xerces in the past, but I thought I would check to see what's being used more recently.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Generally the suggested parser is whatever is built into your JVM. Usually it isn't worth the trouble of trying to use a different parser unless you have specialized requirements.

And if you are talking about a web application (you didn't say) then trying to use a different parser gets you into a power struggle against the application container, which prefers to use the built-in parser. This struggle really isn't worth the trouble unless you really, really need a different parser.
I agree. Here's the link:
subject: What's the current "best" for parsing XML?
It's not a secret anymore!