in reply to XML::Simple error

There's a few things that determine which XML parser is used in XML::Simple, see the Environment section of the XML::Simple docs. You probably don't want to be using XML::SAX::PurePerl if you can help it, if possible use either some other XML::SAX parser (e.g. XML::LibXML::SAX::Parser or XML::SAX::Expat) or the expat based XML::Parser. I wonder how you got XML::SAX::ParserFactory installed without XML::SAX::PurePerl since they are in the same bundle XML-SAX.

Replies are listed 'Best First'.
Re^2: XML::Simple error
by boboson (Monk) on Mar 16, 2006 at 08:46 UTC
    XML::SAX::ParserFactory and XML::SAX::PurePerl are installed
    I tried to set the parser to XML::Parser, but I still get a similar error:
    Error executing class callback in init stage: not well-formed (invalid token) at line 11, column 40, byte 458 at /ho +me/domains/zave/perl/lib/site_perl/5.8.7/i686-linux/XML/Parser.pm lin +e 187
    It must be something I did, but I don't know what and how to solve it.
      did you change the xml file? this error msg sounds like malformed xml.
        Nop, it looks like this
        <?xml version="1.0" encoding="ISO-8859-1"?> <config> <language>SE</language> </config>