File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes What's the current Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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: 16483
    
    2

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: What's the current "best" for parsing XML?
 
Similar Threads
Servlet with XML and getInputStream()
Getting DataSourcein jsp(struts)
XML Confusion
Binary XML-- Any Decoder for it --
For the Die-hards: Custom Tag Error