p5-XML-LibXML I used libxml parser to validate a xml file against a DTD. The error message thrown does not have a line number. So I was having difficultly figuring out which of the multiple instances of an element type was causing the problem. Fix: libxml2 provides a variable (xmlLineNumbersDefaultValue) that can be set. The p5-XML-LibXML module must allow access to this variable. The fix is included below ------------------------------------------------------------------- How-To-Repeat: use p5-XML-LibXML; my $parser = XML::LibXML->new; $parser->validation(1); $parser->pedantic_parser(1); $parser->load_ext_dtd(1); eval { $parser->parse_string($message); }; if ($@){ print "Error: $@ \n"; die ("process_xml"); } where message contains a XML structure with a reference to a DTD. The XML structure is inconsistent with the DTD.
Responsible Changed From-To: freebsd-ports-bugs->skv Over to maintainer
State Changed From-To: open->closed This functionality has been added in version 1.56 of XML::LibXML as the line_numbers method. Please note: FreeBSD distributes packages of external code. If you wish to make enhancements to that code (as opposed to fixing problems with FreeBSD's distribution) you should contact the author of the original software, in this case the author of XML::LibXML. However, as this feature has been added to the module, you no longer need to do this.