|
NAMEXML::SAX2Perl -- translate Java/CORBA style SAX methods to Perl methods SYNOPSISuse XML::SAX2Perl; $sax2perl = XML::SAX2Perl(Handler => $my_handler); $sax->setDocumentHandler($sax2perl); DESCRIPTION"XML::SAX2Perl" is a SAX filter that translates Java/CORBA style SAX methods to Perl style method calls. This man page summarizes the specific options, handlers, and properties supported by "XML::SAX2Perl"; please refer to the Perl SAX standard "XML::SAX" for general usage information. METHODS
OPTIONSThe following options are supported by "XML::SAX2Perl": Handler default handler to receive events DocumentHandler handler to receive document events DTDHandler handler to receive DTD events ErrorHandler handler to receive error events EntityResolver handler to resolve entities Locale locale to provide localisation for errors Source hash containing the input source for parsing If no handlers are provided then all events will be silently ignored, except for `fatal_error()' which will cause a `die()' to be called after calling `end_document()'. If a single string argument is passed to the `parse()' method, it is treated as if a `"Source"' option was given with a `"String"' parameter. The `"Source"' hash may contain the following parameters: ByteStream The raw byte stream (file handle) containing the
document.
String A string containing the document.
SystemId The system identifier (URI) of the document.
PublicId The public identifier.
Encoding A string describing the character encoding.
If more than one of `"ByteStream"', `"String"', or `"SystemId"', then preference is given first to `"ByteStream"', then `"String"', then `"SystemId"'. HANDLERSThe following handlers and properties are supported by "XML::SAX2Perl": DocumentHandler methods
AUTHORKen MacLeod <ken@bitsko.slc.ut.us> SEE ALSOperl(1), XML::Perl2SAX(3). Extensible Markup Language (XML) <http://www.w3c.org/XML/> Simple API for XML (SAX) <http://www.megginson.com/SAX/>
|