This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "What Watch "What New topic
Author

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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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.
 
Consider Paul's rocket mass heater.
 
subject: What's the current "best" for parsing XML?
 
Similar Threads
Binary XML-- Any Decoder for it --
Servlet with XML and getInputStream()
XML Confusion
Getting DataSourcein jsp(struts)
For the Die-hards: Custom Tag Error