On Friday 15 Jan 2010 21:11:55 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 for simple stuff. LibXML for big stuff. See also XML::All. http://perl-xml.sf.net/faq/ }}}}}}}}}}}} Regards, Shlomi Fish > <LabelResponse> > <Label> > <Image Number="1">base64datahere</Image> > <Image Number="2">base64datahere</Image> > <Image Number="3">base64datahere</Image> > </Label> > </LabelResponse> > > I need to be able to grab the correct set of base64 data. Does anyone > know how to do that? > > - 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/