Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Keep It Simple, Stupid
 
PerlMonks  

Facing Problem in XML::Simple

by pavunkumar (Scribe)
on Jun 28, 2011 at 03:16 UTC ( #911640=perlquestion: print w/ replies, xml ) Need Help??
pavunkumar has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,
I am using XML::Simple module for parsing the xml response . 
Some it works fine and give me appropriate output. But some time it throws following error.
Can't locate object method "parsers" via package "XML::SAX" at /usr/s +hare/perl5/XML/SAX/ParserFactory.pm line 18.
How to solve this issue and what could be the issue, pls explain me...
Thanks

Comment on Facing Problem in XML::Simple
Download Code
Re: Facing Problem in XML::Simple
by pavunkumar (Scribe) on Jun 28, 2011 at 03:43 UTC
    The current XML::Simple version  is 2.14 . So, I tried to install the 2.18 for solving this issue. when I gave    make test That time also it says same error.
    
      Go throw this below link, It may help you.. click here
Re: Facing Problem in XML::Simple
by Anonymous Monk on Jun 28, 2011 at 07:50 UTC

    http://search.cpan.org/dist/XML-Simple/lib/XML/Simple.pm#ENVIRONMENT

    http://search.cpan.org/perldoc?XML::SAX

    use XML::SAX; # get a list of known parsers my $parsers = XML::SAX->parsers(); # add/update a parser XML::SAX->add_parser(q(XML::SAX::PurePerl)); # remove parser XML::SAX->remove_parser(q(XML::SAX::Foodelberry)); # save parsers XML::SAX->save_parsers();

    3.18. "could not find ParserDetails.ini"

    You, need to remove_parser/add_parser to manipulate which parser XML::Simple uses (it edits ParserDetails.ini)

    Installing XML::LibXML will ask to edit ParserDetails.ini

    Installing XML::SAX::Expat will ask to edit ParserDetails.ini

    Installing XML::SAX::ExpatXS will ask to edit ParserDetails.ini

    Installing XML::SAX::PurePerl will ask to edit ParserDetails.ini

    Those 4 are known-to-work parsers

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://911640]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (14)
As of 2014-04-16 17:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls