Professional XML (Programmer to Programmer)

Being event based, SAX offers several benefits to its user. At the same time, it also comes with certain disadvantages. Both sides of this coin are presented in this section.

SAX presents four particularly compelling advantages, each of which is presented here:

After that criterion is met, further processing can be abandoned. Other techniques require the document to be parsed fully before any processing can be done.

SAX does come with certain disadvantages:

Категории