hi,
DOM parsers can be used if the file (to be parsed) is likely to be huge or
is growing in nature. This is primarily because u can make use of the cache mechanism
where-in the whole document can be held in memory for future xml-queries.
SAX i wd say wd be better to use for smaller XML files..and where there is regular
flow of data into the file.. something like a streaming-data sort of inflow.
This is because if u hv a new xml-query then te parsing is done all over again
and if the file happens to be huge, then this will affect the peformance.
hope this gives u some idea..
-anoop
-----Original Message-----
From: Suresh Addagalla [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 11:28 AM
To: [EMAIL PROTECTED]
Subject: DOM or SAX with Xalan?
Hi,
Since Xalan has both DOM and SAX implementations, I would like to know
which one gives better performance. Any comparisons would be useful.
Thanks,
Suresh
