Writing out SAX events
It's easy to connect a Writer which turns SAX events into XML to an application or parser which generates those events.
Starting and ending elements, not writing tags
Working with streams provides a slightly higher level of abstraction, making it easier to create tools which modify streams on their way to text.
Easy to integrate with existing programs
Instead of demanding that programs use XML structures internally, SAX makes it easy to create routines which map XML content to internal structures and back again.
Not far from CGI::Perl
This approach isn't exactly new, though CGI::Perl is somewhat more tightly bonded to its host language.
Good for XML-in-XML-out
SAX provides an easy mechanism for connecting parsers to applications and applications to XML generators.
Still no guarantee of well-formedness
You can still start or end an element in the wrong place, or forget to start or end it entirely.
Previous Page <
> Next Page