Expat is an event-based parser that recognizes parts of the document (such as the start or end tag for an XML element) and calls any handlers registered for that type of an event. All handlers receive an instance of XML::Parser::Expat as their first argument.
If an open filehandle is returned, it must be returned as either a glob or as a reference to a glob (e.g., an instance of IO::Handle). The default handler installed for this event is XML::Parser::lwp_ext_ent_handler unless NoLWP option is true, in which case XML::Parser::file_ext_ent_handler is the default handler for external entities.
If both this handler and the Unparsed handler are set, then this handler will not be called for unparsed entities.
Copyright © 2002 O'Reilly & Associates. All rights reserved.