Date sent: Fri, 15 Jan 2010 11:11:55 -0800 Subject: XML::Simple parsing with attributes From: Grant <[email protected]> To: Perl Beginners List <[email protected]>
> Anybody here familiar with XML::Simple? I need to parse some XML that > looks like this: > > <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? See http://www.perlmonks.org/?node_id=697036 You can either parse the whole file getting a consistent data structure or you can process the tags/twigs you are interested in as you go. Jenda ===== [email protected] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
