Query: xml::sax::documentlocator
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SAX::DocumentLocator(3) User Contributed Perl Documentation SAX::DocumentLocator(3)NAMEXML::SAX::DocumentLocator - Helper class for document locatorsSYNOPSISmy $locator = XML::SAX::DocumentLocator->new( sub { $object->get_public_id }, sub { $object->get_system_id }, sub { $reader->current_line }, sub { $reader->current_column }, sub { $reader->get_encoding }, sub { $reader->get_xml_version }, );DESCRIPTIONThis module gives you a tied hash reference that calls the specified closures when asked for PublicId, SystemId, LineNumber and ColumnNumber. It is useful for writing SAX Parsers so that you don't have to constantly update the line numbers in a hash reference on the object you pass to set_document_locator(). See the source code for XML::SAX::PurePerl for a usage example.APIThere is only 1 method: "new". Simply pass it a list of closures that when called will return the PublicId, the SystemId, the LineNumber, the ColumnNumber, the Encoding and the XMLVersion respectively. The closures are passed a single parameter, the key being requested. But you're free to ignore that. perl v5.16.3 2009-10-10 SAX::DocumentLocator(3)
Related Man Pages |
---|
xml::sax2perl(3) - redhat |
xml::libxml::sax(3) - suse |
xml::sax::exception(3) - osx |
xml::sax::exception5.16(3) - osx |
xml::sax2perl(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Set hard block limit for user using quota |
Best performance UNIX just for HOST Virtualization? |
DB2 convert digits to binary format |
CentOS7 restoring file capabilities |
Controlling user input |