DOM

Kay Michael Michael.Kay at icl.com
Thu Apr 1 17:21:43 BST 1999


> What exactly does DOM do and how does it work with XML parsers?
The DOM is an interface that allows an application to discover information
about an XML document by walking around it, navigationally. Many XML parsers
implement the DOM interface.

> What exactly does SAX  do and how does it work with XML parsers?
SAX is an interface that allows an application to discover information about
an XML document by receiving notification of events as the document is
serially read (for example, start and end of elements). Many XML parsers
implement the SAX interface.

> What exactly does SAXON do and how does it work with XML parsers?
SAXON is a Java class library that provides high-level application functions
on top of DOM or SAX, for example it allows you to select the elements to be
processed using XSL-compatible patterns (queries). SAXON also includes an
XSL processor.

> What is the different between the above three tools?
One important difference is that SAXON is a "product", SAX and DOM are
interfaces. There are many parsers that implement SAX and/or DOM interfaces.
SAX is a "lower-level" interface than DOM, it is more work for the
application and less for the parser, but for some applications it uses less
resources.

> Does a parser have to have DOM in order to work?
No.

> Does a parser have to have SAX in order to work?
No.

> What do you use in order to create an XML document programmatically?
System.out.println()
 
> Please help me get started.
You're welcome.

Mike Kay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19990401/212dd57c/attachment.htm


More information about the Xml-dev mailing list