XML::SAX::DocumentLocator man page on OpenServer

Man page or keyword search:  
man Server   5388 pages
apropos Keyword Search (all sections)
Output format
OpenServer logo
[printable version]

SAX::DocumentLocator(3User Contributed Perl DocumentatiSAX::DocumentLocator(3)

NAME
       XML::SAX::DocumentLocator - Helper class for document locators

SYNOPSIS
	 my $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 },
	 );

DESCRIPTION
       This module gives you a tied hash reference that calls the specified
       closures when asked for PublicId, SystemId, LineNumber and ColumnNum-
       ber.

       It is useful for writing SAX Parsers so that you don't have to con-
       stantly 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.

API
       There 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.8.8			  2005-10-14	       SAX::DocumentLocator(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OpenServer

List of man pages available for OpenServer

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net