Lars Skjærlund wrote:
Hi list,I'm trying to use XML::Simple in a plugin, but when I do, I get a fatal error. A test plugin like this: #!/usr/bin/perl -w use strict; use XML::Simple; sub hook_xmlresponse { my ($self, $processor, $hd) = @_; my $fh; open($fh, '/mmt/hgfs/VDMS/test.pl'); my $meta = XMLin($fh); close($fh); return DECLINED; } produces an error like: 10.0.16.50:1235 L3 FATAL PLUGIN ERROR: Can't locate object method "new" via package "XML::LibXML::SAX" at /usr/lib/perl5/site_perl/5.8.8/XML/SAX/ParserFactory.pm line 43. How come?
XML::Simple uses SAX if it's available. Perhaps you have a bug in your ParserDetails.ini file?
Matt. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
