Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Now it always prints the error:use XML::LibXML; use Data::Dumper; my $xml_feed = "C:/xml_learn/g_headlines.xml"; my $parser = XML::LibXML->new; my $dom = $parser->parse_file($xml_feed) or die; my @titles = $dom->getElementsByTagName("title"); foreach my $t (@titles) { print $t->firstChild->data, "\n"; }
I installed XML::LibXML through the ActiveState PPM3 and it asked me if I wanted to install the libxml2.dll. I also searched for "common.dll" and its located in the correct directory as the one listed in the errorCan't load 'C:/Perl/site/lib/auto/XML/LibXML/Common/Common.dll' for mo +dule XML::LibXML::Common: load_file:Access is denied at C:/Perl/lib/D +ynaLoader.pm line 230. at C:/Perl/site/lib/XML/LibXML.pm line 11
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to use XML::LibXML
by Courage (Parson) on May 29, 2005 at 22:18 UTC | |
|
Re: Trying to use XML::LibXML
by Anonymous Monk on May 29, 2005 at 21:15 UTC |