On Saturday 16 Jan 2010 17:17:12 Grant wrote: > >> Anybody here familiar with XML::Simple? I need to parse some XML that > > > >> looks like this: > > Don't use XML::Simple. It is anything but. > > > > {{{{{{{{{{{{{{{{{ > > <rindolf> perlbot: xml::Simple > > <perlbot> rindolf: XML::Simple commits the fatal flaw of trying to > > massage complicated and often irregular XML into the simple and highly > > regular world of perl data structures. Irregularities cause "not a > > hashref" sort of errors in your program. Use a real parser. see: xml > > <rindolf> perlbot: xml > > <perlbot> rindolf: Don't parse XML with regex! Use a real parser. Avoid > > XML::Simple (see the xml::simple factoid). Choices are ::Easy, ::Smart, > > ::Twig > > Thanks, which of these would you use? >
I would use XML-LibXML. Regards, Shlomi Fish > - Grant -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ "The Human Hacking Field Guide" - http://shlom.in/hhfg Bzr is slower than Subversion in combination with Sourceforge. ( By: http://dazjorz.com/ ) -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/