Re: Can't locate object method "load_xml" via package "XML::LibXML"

Michael Kröll <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Jakub Jezek wrote:
> Michael Kröll wrote:
>> Jakub Jezek wrote:
>>   
>>> my $source = XML::LibXML->load_xml(location => 
>>> 'com.redhat.rhsa-20091463.xml');
>>>     
> Could I only rewrite LibXML.pm with newer one? Or updating is more 
> difficult?

If updating XML::LibXML is too complicated - you should also be able to
use the old-style parser interface.

http://search.cpan.org/~pajas/XML-LibXML-1.69/LibXML.pod

Just try

my $parser = XML::LibXML->new();
my $source = $parser->parse_file('com.redhat.rhsa-20091463.xml');

Cheers,
Michael

-- 
063A F25E B064 A98F A479  1690 78CD D023 5E2A 6688
http://zis.uibk.ac.at/.m/uibk.ac.at_pgp_pubkey.asc
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.