XML::Filter::ExceptionLocator version 1.00

This module implements a SAX filter which adds line-numbers and column-numbers to errors generated by SAX handlers futher down the pipeline. I wrote this module so that XML::Validator::Schema could blame the correct line of XML for validation failures.

NOTE: This module requires a SAX parser which correctly supports the set_document_locator() call. At present there is just one, XML::SAX::ExpatXS. If you've got a number of XML::SAX parsers installed and you want to make sure XML::SAX::ExpatXS is used, do this:

$XML::SAX::ParserPackage = 'XML::SAX::ExpatXS';

If you use this filter with another SAX parser and it doesn't work please write the maintainer of that parser and suggest that they add support for set_document_locator()!

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

Or just use CPAN:

perl -MCPAN -e shell
install XML::Filter::ExceptionLocator

DEPENDENCIES

This module requires these other modules and libraries:

XML::SAX
XML::SAX::ExpatXS
Test::More

COPYRIGHT AND LICENSE

Copyright (C) 2002-2003 Sam Tregar

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.