OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: DOM

[ Lists Home | Date Index | Thread Index ]
  • From: Kay Michael <Michael.Kay@icl.com>
  • To: xml-dev@ic.ac.uk
  • 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?
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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS