XML::SAX::DocumentLocator - Online Linux Manual Page
Section : 3pm
Updated : 2019-07-21
Source : perl v5.28.1
Note : User Contributed Perl Documentation
NAMEXML::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 },
);
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. 0
Johanes Gumabo
Data Size : 3,906 byte
man-XML::SAX::DocumentLocator.3pmBuild : 2025-03-22, 13:26 :
Visitor Screen : x
Visitor Counter ( page / site ) : 12 / 1,215,010
Visitor ID : :
Visitor IP : 3.145.51.214 :
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 - 25.03.22
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
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_|254|XML::SAX::DocumentLocator.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|160|XML::SAX::DocumentLocator.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|254|XML::SAX::DocumentLocator.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|160|XML::SAX::DocumentLocator.3pm|43|'br══─}─══ |'br══─}─══
)