Lists Home |
Date Index |
- From: Kay Michael <Michael.Kay@icl.com>
- To: email@example.com
- Date: Thu, 1 Apr 1999 16:14:31 +0100
Title: RE: DOM
> 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?
> Does a parser have to have SAX in order to work?
> What do you use in order to create an XML document programmatically?
> Please help me get started.