perl XML::Simple parsing for keyword
- From: replysonika@xxxxxxxxx (Sonika Sachdeva)
- Date: Wed, 29 Mar 2006 12:54:21 -0800
Hi,
I want to search for one or more "filename.mpg" from the xml files which I
am parsing using XML:Simple.
It may or maynot be there.
sub parsexml {
my $xml=shift;
my $config = XMLin($xml,keyattr=>[Name]);
my $A = $config->{' X '}->{'Y'}->{'A'} ;
my $B = $config->{'X'}->{'Y'}->{'B'} ;
my $C = $config->{'X'}->{'Y'}->{'C'} ;
my $D = $config->{'X'}->{'Y'}->{'D'} ;
# Search for filename.mpg - all from the file
}
Please suggest.
- Prev by Date: Re: Whimsical Question
- Next by Date: GDBM_File help
- Previous by thread: Parsing out chunks of .xml from a binary file
- Next by thread: GDBM_File help
- Index(es):
Relevant Pages
|