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
Comment on Re: XML::SAX::PurePerl line&col location