On Mon, Mar 20, 2006 at 12:35:30PM -0500, Mark Plaksin wrote: > And there are no sequential XML parsers? And thus XML is only good for > small amounts of data? I know little about XML but find this hard to > believe :)
You'd be right: there are two broad categories of XML parsers: DOM - load the whole thing in to a tree SAX - stream parser with callbacks DOM is useful if you need to manipulate everything as a whole, but it sucks everything into memory at once. Not really great for huge trees. SAX gives callbacks at the various points in the process, so if you need to just pick out one part of the tree, it can be done with no more memory than just the intersting parts. Steve -- Stephen J Friedl | Security Consultant | UNIX Wizard | +1 714 544-6561 www.unixwiz.net | Tustin, Calif. USA | Microsoft MVP | [EMAIL PROTECTED] -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
