★ wanayoo — archive 1999 http://www.xml.com/pub/r/DOMParserNouvelle recherche | Portail wanayoo
  Home | Search | Resources | Buyer's Guide | FAQs
Free Newsletter  
.
XML.com
spacer

XML Resource Guide: DOM, Java Applications

DOMParser

Link: http://www.ccil.org/~cowan/XML
Date: Sept. 16, 1998
Source: John Cowan

Summary: DOM parser works just like a standard SAX parser, except that it does not actually read XML source code. Instead, it obtains elements, attributes, and so on from an instance of the Document Object Model.

From the xml-dev announcement: "A preliminary version of DOMParser is now available at my XML page (http://www.ccil.org/~cowan/XML). DOMParser is a compliant SAX parser, except that its input comes from a DOM implementation rather than an InputSource. An additional method, parse(Document d), is introduced to parse DOM Document objects. The standard parse() methods throw errors. (Perhaps they should look for a real parser and a DOM implementation to try to create a DOM Document instead?)"

"A demo program is also available, based on the SAX ByteStreamDemo and using the Docuverse DOM SDK as the DOM. Its output is identical to that of ByteStreamDemo using Aelfred 1.2 as the parser, except that it does not try to resolve a SystemId or set a Locator (Locators making no sense when there is no source text)."

Submitted by Lisa Rein



Sponsored by:


The Source for
Open & Emerging
Technologies
The O'Reilly Network, launching in January 2000, is your online source for open and emerging technologies, including new platforms, programming languages, and operating systems.

.


Sponsored by:

.
.
Copyright © 1998-1999 Seybold Publications and O'Reilly & Associates, Inc.