• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAX and DOM

 
dhuha al khoiri
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 1776
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2187
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jimmy & William for making that clear.
 
dhuha al khoiri
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i mean an internet web,not semantic web

thanks for William Brogden,John Jai,and Jimmy Clark for your help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic