Subject: | problematic results from attempting to use HTML::Tidy::libXML |
Date: | Mon, 4 May 2009 11:00:18 -0600 |
To: | bug-html-tidy-libxml [...] rt.cpan.org |
From: | Hugh Myers <hsmyers [...] gmail.com> |
Several problems when trying to use HTML::Tidy::libXML installed from
ActiveState 5.8x under XP.
1. No mention in pod of what $encoding should be.
$ grep -C1 "\$encoding" HTML-Tidy-libXML.txt
my $tidy = HTML::Tidy::libXML->new();
my $xml = $tidy->clean($html, $encoding); # clean enough as xml
my $xhtml = $tidy->clean($html, $encoding, 1); # clean enough for
browsers
--
html2dom
my $dom = $tidy->html2dom($string, $encoding);
--
html2xml
my $xml = $tidy->html2xml($html, $encoding, $level)
--
my $dom = $tidy->html2dom($html, $encoding);
my $xml = $tidy->dom2xml($dom, $level);
2. running test code results in windows pop-up saying: "The procedure entry
point for Perl_sv_2iv_flags could not be located in the dynamic link library
perl58.dll"
3. experimenting with code (obvious details omitted) below results in above,
followed by:
my $tidy = HTML::Tidy::libXML->new();
my $xhmtl = $tidy->clean($text,undef,1);
print $xhmtl;
exit;
C:\>test3
Can't load 'C:/Perl/site/lib/auto/XML/LibXML/LibXML.dll' for module
XML::LibXML: load_file:The specified procedure could not be found a
t C:/Perl/lib/DynaLoader.pm line 230.
at C:/Perl/site/lib/XML/LibXML.pm line 116
BEGIN failed--compilation aborted at C:/Perl/site/lib/XML/LibXML.pm line
116.
Compilation failed in require at C:/Perl/site/lib/HTML/Tidy/libXML.pm line
8.
BEGIN failed--compilation aborted at C:/Perl/site/lib/HTML/Tidy/libXML.pm
line 8.
Compilation failed in require at C:\Documents and
Settings\hsmyers\Desktop\backlink\test\test3.pl line 9.
BEGIN failed--compilation aborted at C:\Documents and
Settings\hsmyers\Desktop\backlink\test\test3.pl line 9 (#1)
(F) The module you tried to load failed to load a dynamic extension.
This
may either mean that you upgraded your version of perl to one that is
incompatible with your old dynamic extensions (which is known to happen
between major versions of perl), or (more likely) that your dynamic
extension was built against an older version of the library that is
installed on your system. You may need to rebuild your old dynamic
extensions.
Uncaught exception from user code:
Can't load 'C:/Perl/site/lib/auto/XML/LibXML/LibXML.dll' for module
XML::LibXML: load_file:The specified procedure could not be
found at C:/Perl/lib/DynaLoader.pm line 230.
at C:/Perl/site/lib/XML/LibXML.pm line 116
BEGIN failed--compilation aborted at C:/Perl/site/lib/XML/LibXML.pm line
116.
Compilation failed in require at C:/Perl/site/lib/HTML/Tidy/libXML.pm line
8.
BEGIN failed--compilation aborted at C:/Perl/site/lib/HTML/Tidy/libXML.pm
line 8.
Compilation failed in require at C:\Documents and
Settings\hsmyers\Desktop\backlink\test\test3.pl line 9.
BEGIN failed--compilation aborted at C:\Documents and
Settings\hsmyers\Desktop\backlink\test\test3.pl line 9.
at C:\Documents and Settings\hsmyers\Desktop\backlink\test\test3.pl line 9
--hsm