Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   Error when using XML::Simple with XML::LibXML (http://www.velocityreviews.com/forums/t886946-error-when-using-xml-simple-with-xml-libxml.html)

Leif Wessman 06-18-2004 01:01 PM

Error when using XML::Simple with XML::LibXML
 
I've successfully installed XML::Simple and XML::LibXML.

the following code gives me an error:
----
#!/usr/local/bin/perl

....

use XML::Simple;
$XML::Simple::PREFERRED_PARSER = 'XML::LibXML';
my $xs1 = XML::Simple->new();
my $doc = $xs1->XMLin($input, forcearray=>1);
----

The error is:

Can't locate object method "xml_decl" via package "XML::Simple" at
/home/leif/perl/lib/perl5/site_perl/5.8.0/i386-linux/XML/LibXML.pm
line 369.
at /home/leif/perl/lib/perl5/site_perl/5.8.0/XML/Simple.pm line 295

What have I done wrong?

Leif


All times are GMT. The time now is 07:09 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.