Observer Example Explained
- The observer is XML::SAX::Printer
- Knows nothing about the parser API
- Parser just requires that observer implements a defined API
- Can combine different parsers and observers
- XML::LibXML::SAX is a parser
- XML::SAX::Writer is an observer