dan has asked for the wisdom of the Perl Monks concerning the following question:

How do I get the current line number and column location from instances of XML::SAX::PurePerl. I'm running Perl 5.6.1 on Solaris. Although I've written several thousand lines of Perl, but I'm still a novice (especially when it comes to OO stuff).

Replies are listed 'Best First'.
Re: XML::SAX::PurePerl line&col location
by samtregar (Abbot) on Apr 13, 2006 at 01:54 UTC
    You don't, at least not correct ones. I found this out while developing XML::Filter::ExceptionLocator. I recommend you use XML::SAX::ExpatXS, which is the only SAX parser with a completely functional set_document_locator() interface.

    -sam