aspose file tools
The moose likes XML and Related Technologies and the fly likes Best XML Parser. 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 "Best XML Parser." Watch "Best XML Parser." New topic
Author

Best XML Parser.

Rahul Ba
Ranch Hand

Joined: Oct 01, 2008
Posts: 203

What is the best way to parse and make XML. I know SAX and DOM.... IS there are any other technology to parse. Please list them and what is the best way to parse the XML document among this.

Thanks in advance.

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35235
    
    7
There is rarely a single "best" for anything. Any number of other libraries are available that provide an API for working with XML documents: XOM, dom4j, JDOM, XPath, ... Which one is best suited depends on your requirements. SAX is likely to be the fasted, while XPath is likely to be the slowest.


Android appsImageJ pluginsJava web charts
Rahul Ba
Ranch Hand

Joined: Oct 01, 2008
Posts: 203
What is the difference between Jdom and dom4j?
I am not getting one more thing ...In JDOm and DOm4j we can use either SAX or DOM parser, then these parser contains the DOM in their name..JDOM and dom4j
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35235
    
    7
I think ALL these libraries use SAX underneath, even DOM. In that sense, DOM is not really a "parser", it's an XML API.

JDOM, dom4j and XOM are alternative DOM APIs. If you study the documentation on their respective web sites, you should get a feel of what their differences are.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Best XML Parser.
 
Similar Threads
Java-XML and Xml-java
Parse a soap Response
JSP and XML question
XML parsing
Web services and XML parsing..