This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes SAX and DOM 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 "SAX and DOM" Watch "SAX and DOM" New topic
Author

SAX and DOM

dhuha al khoiri
Greenhorn

Joined: Apr 17, 2012
Posts: 24
Please help me, explain to me role of SAX and DOM on web???

i did'nt clearly understand what i got from google, so explain to me clearly,please...

thanks..


best regards

Dhuha Al Khoiri
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
What do you mean by role of SAX and DOM on web? You can see a table of differences here - Oracle TechTip - Java and XML
dhuha al khoiri
Greenhorn

Joined: Apr 17, 2012
Posts: 24

i mean,what does DOM and SAX do,their function on web??

and what for DOM and SAX in web?? why they so necessary on web??

that's what i mean,and i need your explanation...

thanks

best regards

dhuha al khoiri
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
I know they are parsers used to parse XML documents. However lets wait from other ranchers about their work on the web. By web you mean the internet or semantic web?
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
The Simple API for XML (SAX) and the Document Object Model (DOM) are not XML parsers, they are programming interfaces. Developers can use these interfaces to create XML data processing applications. SAX integrates with an XML parser and a DOM is the output of a SAX implementation. Neither API is the actual XML parser itself.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
Jimmy Clark wrote:The Simple API for XML (SAX) and the Document Object Model (DOM) are not XML parsers, they are programming interfaces. Developers can use these interfaces to create XML data processing applications. SAX integrates with an XML parser and a DOM is the output of SAX. Neither API is the actual XML parser itself.


Never the less, it is common practice among programmers to refer to using a SAX parser or a DOM parser. Lets not be too picky and confuse the newbie.

Why are they necessary on the web? Because LOTS of information moves over the Internet in the form of XML documents, and lots of information used to create web pages is held in XML documents.

Bill
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Thanks Jimmy & William for making that clear.
dhuha al khoiri
Greenhorn

Joined: Apr 17, 2012
Posts: 24

i mean an internet web,not semantic web

thanks for William Brogden,John Jai,and Jimmy Clark for your help
 
GeeCON Prague 2014
 
subject: SAX and DOM