Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: XML::Simple -> XMLin() requires either XML::SAX or XML::Parser

by grantm (Parson)
on Aug 07, 2008 at 08:23 UTC ( [id://702825]=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML::Simple -> XMLin() requires either XML::SAX or XML::Parser
in thread XML::Simple -> XMLin() requires either XML::SAX or XML::Parser

If you have XML::SAX (which includes a PurePerl parser) then no external libraries are required for XML::Simple to work. If you want better parsing speed then by all means use XML::Parser (or XML::SAX::ExpatXS) but either of these Perl modules will need access to libexpat. No other external libraries are required.

If I were trying to diagnose it, I'd probably use the strace tool (on Linux) to log the system calls that the application is making. The log would probably show an attempt to open a file that doesn't exist.

The other thing you could do is rebuild your PerlApp compilation with a modified copy of XML::Simple. Find the line that generates that error and modify the error string to include $@ - the text of the error that caused the parser load to fail. E.g.:

croak "XMLin() requires either XML::SAX or XML::Parser ($@)";
  • Comment on Re^3: XML::Simple -> XMLin() requires either XML::SAX or XML::Parser
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://702825]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2025-06-22 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.