Re: XML::Simple parsing with attributes

2010-01-16 Thread Grant
> > base64datahere > base64datahere > base64datahere > > > > >>> #!/usr/bin/perl >>> >>> use strict; >>> use warnings; >>> use XML::Simple; >>> >>> my $data = XMLin($path_to_file); >>> >>> foreach my $image (@{$data->{Label}->{Image}}) { >>>        print "$image

Re: XML::Simple parsing with attributes

2010-01-16 Thread Shlomi Fish
On Saturday 16 Jan 2010 14:32:13 Dr.Ruud wrote: > Shlomi Fish wrote: > > 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. > > > > { > >

Re: XML::Simple parsing with attributes

2010-01-16 Thread Erez Schatz
2010/1/16 Grant : >>> base64datahere base64datahere base64datahere >> #!/usr/bin/perl >> >> use strict; >> use warnings; >> use XML::Simple; >> >> my $data = XMLin($path_to_file); >> >> foreach my $image (@{$data->{Label}->{Image}}) { >>        print "$image-

Re: XML::Simple parsing with attributes

2010-01-16 Thread Dr.Ruud
Shlomi Fish wrote: 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. { You need to get rid of those ugly things, they make your postings utterly

Re: XML::Simple parsing with attributes

2010-01-16 Thread Shlomi Fish
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. > > > > { > > perlbot: xml::Simple > > rindolf: XML::Simple commits the fatal flaw o

Re: XML::Simple parsing with attributes

2010-01-16 Thread Grant
>> >>> >>> base64datahere >>> base64datahere >>> base64datahere >>> >>> >>> >>> I need to be able to grab the correct set of base64 data.  Does anyone >>> know how to do that? > > It's a common practice, to avoid using XML::Simple. It's also a common > practice not to give practical suggestions

Re: XML::Simple parsing with attributes

2010-01-16 Thread Grant
>> 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. > > { > perlbot: xml::Simple > rindolf: XML::Simple commits the fatal flaw of trying to massage > complicated and often irregular XML int