XML::Simple parsing with attributes

2010-01-15 Thread Grant
Anybody here familiar with XML::Simple? I need to parse some XML that looks like this: base64datahere base64datahere base64datahere I need to be able to grab the correct set of base64 data. Does anyone know how to do that? - Grant -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: XML::Simple parsing with attributes

2010-01-15 Thread Shlomi Fish
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. { perlbot: xml::Simple rindolf: XML::Simple commits the fatal flaw of trying to massage complic

Re: XML::Simple parsing with attributes

2010-01-15 Thread Erez Schatz
> >> >> 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. Since you *di

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

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 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 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 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 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 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-18 Thread Dr.Ruud
Shlomi Fish wrote: On Saturday 16 Jan 2010 14:32:13 Dr.Ruud wrote: Shlomi Fish wrote: 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. That is a strange sentence. I think w

Re: XML::Simple parsing with attributes

2010-01-20 Thread Brad Baxter
On 1/15/2010 2:11 PM, Grant wrote: Anybody here familiar with XML::Simple? I need to parse some XML that looks like this: base64datahere base64datahere base64datahere I need to be able to grab the correct set of base64 data. Does anyone know how to do that? - Grant The "correct set"?

Re: XML::Simple parsing with attributes

2010-01-21 Thread Jenda Krynicky
Date sent: Fri, 15 Jan 2010 11:11:55 -0800 Subject:XML::Simple parsing with attributes From: Grant To: Perl Beginners List > Anybody here familiar with XML::Simple? I need to parse some XML that > looks lik

Re: XML::Simple parsing with attributes

2010-01-21 Thread Jenda Krynicky
From: Shlomi Fish > > This because you can very well represent XML in Perl data structures > > without any loss of complexity. See for example XML::Compile. > > Wrong! If for example you have something like {{{ Hello this is a href="http://www.example.tld/";>link for something }}}, then > XML-S

Re: XML::Simple parsing with attributes

2010-01-22 Thread Shlomi Fish
On Friday 22 Jan 2010 00:44:39 Jenda Krynicky wrote: > From: Shlomi Fish > > > > This because you can very well represent XML in Perl data structures > > > without any loss of complexity. See for example XML::Compile. > > > > Wrong! If for example you have something like {{{ Hello this is a > h

Re: XML::Simple parsing with attributes

2010-01-22 Thread Jenda Krynicky
From: Shlomi Fish > On Friday 22 Jan 2010 00:44:39 Jenda Krynicky wrote: > > From: Shlomi Fish > > > > > > This because you can very well represent XML in Perl data structures > > > > without any loss of complexity. See for example XML::Compile. > > > > > > Wrong! If for example you have someth

Re: XML::Simple parsing with attributes

2010-01-25 Thread Dr.Ruud
Shlomi Fish wrote: XML::Compile seems to be for SOAP, which is a subset of the general XML functionality. It looks to me like your reading problems are still not over. In its documentation it says to be about "translate between XML and nested hashes". And also about validation. And also abo