p5-XML-Filter-ExceptionLocator

add line information to XML parse errors

WWW CVSWeb GITHub
  1. Package version
    p5-XML-Filter-ExceptionLocator-1.01p0
  2. Maintainer
    The OpenBSD ports mailing-list

This module implements a SAX filter which adds line-numbers and
column-numbers to errors generated by SAX handlers further down the
pipeline. Written explicitly 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';

  • textproc/p5-XML-SAX
  • textproc/p5-XML-SAX-ExpatXS