SAX2 is the successor to the SAX1 standard. Yes, it is a standard even though it is not published by W3C. It’s an XML community standard and, therefore, is well-defined and easily adapted to your needs. SAX2 has become the preferred way to stream process XML.

The SAX1 standard was usable by many applications, but many programs required more information from the parser, and SAX1 did not address these issues. SAX2 was created to address these issues. It exposes more parsing information to the application and, therefore, fills in the gap of SAX1.

Most SAX development today has evolved around SAX2 specifications. Probably the only development you will see in the SAX1 arena is the actual upgrading and porting to the SAX2 interface. Perl’s ...

Get XML and Perl now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.