Hi,
Originally posted by Frank Hale:
Can somebody explain these terms to me. I've seen them repeatedly but I haven't a clue as to what they mean.
DOM, SAX, and DTD
Thanks,
Frank
DOM : The Document Object Model (DOM) is basically facilitator (or rather an interface) that defines the methods or mechanisms for accessing the data in a document.
It is a way to describe a XML document to a application or prg. lang. as a series of OBJECTS in a heirarchical manner to make it easy to access and work with the elements in the document.
DTD : It is basically a specification for a document that organizes elements and the markup definitions for use by other documents. It means Document Type Definition. HTML also has a DTD
which U can view in the source of some HTML pages as
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" > SAX Simple API for XML : It is an event based interface created specifically for (well as the name suggests) XML parsers.
Usually DTD is preferred but when memory is a constraint one would use SAX.
An example of SAX can be found at
here Hope this helps a little.
Ajay Kumar
[This message has been edited by Ajay Kumar (edited June 23, 2000).]