in reply to XML::Simple bug? aka I want the whitespace dude!

Sidestepping the actual question you pose, these are the kind of things that make me avoid XML::Simple for much of anything. Using it to access an XML config file is probably ok -- especially since it's what the wonderful Config::Auto uses -- but beyond that, I'd reach for something else. My favorite something else is currently XML::TreeBuilder. It's a subclass of HTML::TreeBuilder, and shares the same power hidden behind a pretty darned nice interface.

  • Comment on Re: XML::Simple bug? aka I want the whitespace dude!

Replies are listed 'Best First'.
Re^2: XML::Simple bug? aka I want the whitespace dude!
by Jenda (Abbot) on Aug 23, 2005 at 17:33 UTC

    There is a reason why I like XML::Simple. I don't end up with a heap of crazy objects with loads of impossible to remember methods and properties, but instead I get just a pure datastructure I can map and grep and loop through using the Perl builtin operators and functions. The AFAPITL (Another Fucking API To Learn) problem.

    I don't spend my days massaging XML with Perl, Perl is only about 20% of my work and only about 20% of my Perl work involves XML. Days, sometime weeks, pass by without me having to do anything at all with XML. Thanks god.

    Jenda
    XML sucks. Badly. SOAP on the other hand is the most powerfull vacuum pump ever invented.