dbonneville has asked for the wisdom of the Perl Monks concerning the following question:
Hello! I'm a brand new to Perl, but not to programming.
So far, I'm able to read in and parse and XML doc to the screen, but I'm currently at a loss as what to do next. I've been searching for some help, but am a little directionless as all-things-Perl is too new for me yet. I probably passed by some good help and didn't know it already...
Here what I'm trying to do:
- Load in an XML file
- Parse the file and look for content in it (recordsets)
- Take those records that match certain criteria and
WRITE them to a new XML file on the server.
- Do this about 30 times, for different criteria, from the master XML file from the first step.
As of yet, I can't find a way to do this. I'm not looking for hand-holding, but some good info or tips or tutorials to get me going, so I can then formulate the next intelligent question.
I started from ground zero today, with utterly no knowledge of Perl. I got it running on my PC and got this far (which to me was a LOT):
Thanks,
Doug
So far, I'm able to read in and parse and XML doc to the screen, but I'm currently at a loss as what to do next. I've been searching for some help, but am a little directionless as all-things-Perl is too new for me yet. I probably passed by some good help and didn't know it already...
Here what I'm trying to do:
- Load in an XML file
- Parse the file and look for content in it (recordsets)
- Take those records that match certain criteria and
WRITE them to a new XML file on the server.
- Do this about 30 times, for different criteria, from the master XML file from the first step.
As of yet, I can't find a way to do this. I'm not looking for hand-holding, but some good info or tips or tutorials to get me going, so I can then formulate the next intelligent question.
I started from ground zero today, with utterly no knowledge of Perl. I got it running on my PC and got this far (which to me was a LOT):
#!/usr/local/bin/perl -w use warnings; use XML::Parser; my $p1 = new XML::Parser(Style => 'Debug'); $p1->parsefile('test.xml');
Thanks,
Doug
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Help with XML Parsing
by GrandFather (Saint) on Jul 20, 2007 at 22:07 UTC | |
Re: Help with XML Parsing
by un-chomp (Scribe) on Jul 20, 2007 at 21:26 UTC | |
by dbonneville (Acolyte) on Aug 23, 2007 at 15:45 UTC | |
Re: Help with XML Parsing
by runrig (Abbot) on Jul 20, 2007 at 20:39 UTC | |
Re: Help with XML Parsing
by CountZero (Bishop) on Jul 20, 2007 at 21:10 UTC | |
by Jenda (Abbot) on Aug 04, 2007 at 18:58 UTC | |
Re: Help with XML Parsing
by mirod (Canon) on Jul 20, 2007 at 21:58 UTC | |
Re: Help with XML Parsing
by rvosa (Curate) on Jul 21, 2007 at 13:44 UTC |
Back to
Seekers of Perl Wisdom