|
In my company I'm worried about the misuse of SAX! Most of my colleagues try to stay informed, and SAX do present a couple of advantages in most cases, one of them the ability to work on large documents. The result is that most of them use SAX for everything which doesn't have to change the XML document. This would be fine if SAX would be in all the cases a superior model but there are particular situation in which DOM would be more appropriate. In inertia they almost forgot about DOM.
Another issue SAX is not difficult, all of them managed to get the basics pretty fast, the problem is when things get a bit complicated it is very easy to produce a messy piece of code which does the job. At the end it does it, but it's terrible to look at it or to work with it.
Last time I tried to find a good tutorial on some advanced SAX techniques, found none. Maybe that would be a good start, an tutorial on SAX which would go a bit beyond the usual I have an XML with 3 fields. Let's see how the BIG ONES work and think with SAX on some real situations!
|