™.. XML::SAX2Perl - Online Linux Manual PageSection : 3
Updated : 2003-10-21
Source : perl v5.10.1
Note : User Contributed Perl Documentation

NAMEXML::SAX2Perl −− translate Java/CORBA style SAX methods to Perl methods

SYNOPSIS​ use XML::SAX2Perl; ​ ​ $sax2perl = XML::SAX2Perl(Handler => $my_handler); ​ $sax−>setDocumentHandler($sax2perl);

DESCRIPTION\*(C`XML::SAX2Perl\*(C'\fR is a \s-1SAX\s0 filter that translates Java/CORBA style \s-1SAX\s0 methods to Perl style method calls. This man page summarizes the specific options, handlers, and properties supported by ​\*(C`XML::SAX2Perl\*(C'\fR; please refer to the Perl \s-1SAX\s0 standard \f(CW\*(C`XML::SAX\*(C'\fR for general usage information.

METHODSnew Creates a new parser object. Default options for parsing, described below, are passed as key-value pairs or as a single hash. Options may be changed directly in the parser object unless stated otherwise. Options passed to `\*(C`parse()\*(C'\fR' override the default options in the parser object for the duration of the parse. parse Parses a document. Options, described below, are passed as key-value pairs or as a single hash. Options passed to `\*(C`parse()\*(C'\fR' override default options in the parser object. location Returns the location as a hash: ​ ColumnNumber The column number of the parse. ​ LineNumber The line number of the parse. ​ PublicId A string containing the public identifier, or undef ​ if none is available. ​ SystemId A string containing the system identifier, or undef ​ if none is available. SAX DocumentHandler Methods The following methods are DocumentHandler methods that the SAX 1.0 parser will call and \*(C`XML::SAX2Perl\*(C'\fR will translate to Perl \s-1SAX\s0 methods calls. See SAX 1.0 for details. ​ setDocumentLocator(locator) ​ startDocument() ​ endDocument() ​ startElement(name, atts) ​ endElement(name) ​ characters(ch, start, length) ​ ignorableWhitespace(ch, start, length) ​ processingInstruction(target, data)

OPTIONSThe following options are supported by \*(C`XML::SAX2Perl\*(C'\fR: ​ 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 `\*(C`fatal_error()\*(C'\fR' which will cause a `\f(CW\*(C`die()\*(C'\fR' to be called after calling `\*(C`end_document()\*(C'\fR'. If a single string argument is passed to the `\*(C`parse()\*(C'\fR' method, it is treated as if a `\*(C`Source\*(C'\fR' option was given with a `\f(CW\*(C`String\*(C'\fR' parameter. The `\*(C`Source\*(C'\fR' 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 `\*(C`ByteStream\*(C'\fR', `\f(CW\*(C`String\*(C'\fR', or `\f(CW\*(C`SystemId\*(C'\fR', then preference is given first to `\*(C`ByteStream\*(C'\fR', then `\f(CW\*(C`String\*(C'\fR', then `\*(C`SystemId\*(C'\fR'.

HANDLERSThe following handlers and properties are supported by ​\*(C`XML::SAX2Perl\*(C'\fR:

DocumentHandler methodsstart_document Receive notification of the beginning of a document. ​ Locator An object that can return the location of any SAX ​ document event. end_document Receive notification of the end of a document. No properties defined. start_element Receive notification of the beginning of an element. ​ Name The element type name. ​ Attributes Attributes attached to the element, if any. ALPHA WARNING: The `\*(C`Attributes\*(C'\fR' value is not translated from the ​SAX 1.0 value, so it will contain an AttributeList object. end_element Receive notification of the end of an element. ​ Name The element type name. characters Receive notification of character data. ​ Data The characters from the XML document. ignorable_whitespace Receive notification of ignorable whitespace in element content. ​ Data The characters from the XML document. processing_instruction Receive notification of a processing instruction. ​ Target The processing instruction target. ​ Data The processing instruction data, if any.

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/>
0
Johanes Gumabo
Data Size   :   17,803 byte
man-XML::SAX2Perl.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   6 / 187,287
Visitor ID   :     :  
Visitor IP   :   3.144.237.52   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|XML::SAX2Perl.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|XML::SAX2Perl.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|XML::SAX2Perl.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|XML::SAX2Perl.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|XML::SAX2Perl.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|XML::SAX2Perl.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|XML::SAX2Perl.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|XML::SAX2Perl.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|249|XML::SAX2Perl.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|XML::SAX2Perl.3pm|57|.══─}─══ |.══─}─══ )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|144|\*(C`XML::SAX2Perl\*(C'\fR is a \s-1SAX\s0 filter that translates Java/CORBA style \s-1SAX\s0 |\&\f(CW\*(C`XML::SAX2Perl\*(C'\fR is a \s-1SAX\s0 filter that translates Java/CORBA style \s-1SAX\s0 )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|147|\*(C`XML::SAX2Perl\*(C'\fR; please refer to the Perl \s-1SAX\s0 standard \f(CW\*(C`XML::SAX\*(C'\fR |\&\f(CW\*(C`XML::SAX2Perl\*(C'\fR; please refer to the Perl \s-1SAX\s0 standard \f(CW\*(C`XML::SAX\*(C'\fR )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|156|\*(C`parse()\*(C'\fR' override the default options in the |Options passed to `\f(CW\*(C`parse()\*(C'\fR' override the default options in the )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|161|\*(C`parse()\*(C'\fR' override |pairs or as a single hash. Options passed to `\f(CW\*(C`parse()\*(C'\fR' override )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|178|\*(C`XML::SAX2Perl\*(C'\fR will translate to Perl \s-1SAX\s0 |parser will call and \f(CW\*(C`XML::SAX2Perl\*(C'\fR will translate to Perl \s-1SAX\s0 )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|193|\*(C`XML::SAX2Perl\*(C'\fR: |The following options are supported by \f(CW\*(C`XML::SAX2Perl\*(C'\fR: )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|206|\*(C`fatal_error()\*(C'\fR' which will cause a `\f(CW\*(C`die()\*(C'\fR' to be |except for `\f(CW\*(C`fatal_error()\*(C'\fR' which will cause a `\f(CW\*(C`die()\*(C'\fR' to be )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|207|\*(C`end_document()\*(C'\fR'. |called after calling `\f(CW\*(C`end_document()\*(C'\fR'. )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|209|\*(C`parse()\*(C'\fR' method, it |If a single string argument is passed to the `\f(CW\*(C`parse()\*(C'\fR' method, it )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|210|\*(C`Source\*(C'\fR' option was given with a `\f(CW\*(C`String\*(C'\fR' |is treated as if a `\f(CW\*(C`Source\*(C'\fR' option was given with a `\f(CW\*(C`String\*(C'\fR' )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|213|\*(C`Source\*(C'\fR' hash may contain the following parameters: |The `\f(CW\*(C`Source\*(C'\fR' hash may contain the following parameters: )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|224|\*(C`ByteStream\*(C'\fR', `\f(CW\*(C`String\*(C'\fR', or `\f(CW\*(C`SystemId\*(C'\fR', |If more than one of `\f(CW\*(C`ByteStream\*(C'\fR', `\f(CW\*(C`String\*(C'\fR', or `\f(CW\*(C`SystemId\*(C'\fR', )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|225|\*(C`ByteStream\*(C'\fR', then `\f(CW\*(C`String\*(C'\fR', |then preference is given first to `\f(CW\*(C`ByteStream\*(C'\fR', then `\f(CW\*(C`String\*(C'\fR', )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|226|\*(C`SystemId\*(C'\fR'. |then `\f(CW\*(C`SystemId\*(C'\fR'. )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|230|\*(C`XML::SAX2Perl\*(C'\fR: |\&\f(CW\*(C`XML::SAX2Perl\*(C'\fR: )         (rof_escape_sequence|91|XML::SAX2Perl.3pm|255|\*(C`Attributes\*(C'\fR' value is not translated from the |\&\s-1ALPHA\s0 \s-1WARNING:\s0 The `\f(CW\*(C`Attributes\*(C'\fR' value is not translated from the )