in reply to Redefining a method in XML::SAX::PurePerl

I am very surprised to learn that XML::Twig uses XML::SAX::PurePerl. All these years I thought it was using XML::Parser! ;--)

Seriously, I don't understand how XML::Twig could use anything else than XML::Parser to parse XML. Could you explain a little more under which circumstances this happens?

  • Comment on Re: Redefining a method in XML::SAX::PurePerl

Replies are listed 'Best First'.
Re^2: Redefining a method in XML::SAX::PurePerl
by bobf (Monsignor) on Aug 02, 2009 at 01:54 UTC

    You're right (of course). The program that I'm working on calls 3 custom modules. The two heavy-lifters use XML::Twig, but under certain conditions they call a third that uses XML::Simple to parse output from a short SOAP message. I didn't realize it at the time, but the method that threw the error described in the OP was from the third rather than the one of the first two.

    I'll update the OP with the correction. Thanks for the poke - I made a faulty assumption.

      XML::Twig has a method called simplify, that emulates XML::Simple's XMLin, maybe you can use it.