From: "Diethelm Guallar, Gonzalo" <[EMAIL PROTECTED]>
Subject: [OT] XML parsers
Date: Wed, 27 Sep 2000 12:00:24 -0400
Message-ID: <[EMAIL PROTECTED]>
Gonzalo.Diethelm> I have been looking into using xerces to parse an XML file
Gonzalo.Diethelm> with the description of a menu and generate JavaScript code
Gonzalo.Diethelm> that implements that menu. Anyway, there seem to be several
Gonzalo.Diethelm> parsers in xerces (1.1.3):
Gonzalo.Diethelm>
Gonzalo.Diethelm> DOMParser
Gonzalo.Diethelm> RevalidatingDOMParser
Gonzalo.Diethelm> SAXParser
Gonzalo.Diethelm>
Gonzalo.Diethelm> I based my code on SAXParser, and when I compile I get lots
Gonzalo.Diethelm> of "deprecated" messages. Questions:
I think you use SAX1 methods, they mostly all are deprecated. Use SAX2
instead if your code is not restricted to SAX1(as Castor for example).
Gonzalo.Diethelm>
Gonzalo.Diethelm> 0. What are the differences between those parsers?
Gonzalo.Diethelm> 1. Is there a "preferred" parser to use?
Preffered is SAX2.
SAX is fastest parser from them. It works as event filter. Code works
in the manner of shell conveyer, where you pipe stream throw several
filters.
DOM construct whole tree of parsed document. After that you can
navigate on this tree and reconstruct it.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]