dsm has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
Please forgive my ignorance - I'm a newbie to Perl (and even newer to XML), and i'm trying to use the XML::Parser module to Parse an XML file. Problem is, Im not quite sure on how to do it - Have read the perldoc, and the tutorial, but still a little unsure...If I have an XML file, which has a root element and then four child elements, how do i get that data out of the file? Do I need a hash if there will only ever be one 'record' in the file? finally, what do the variables $p, $elt and %atts contain in the XML::Parser Tutorial?
Many thanks to anyone who takes the time to respond to this post... :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Help Using XML::Parser module
by edan (Curate) on Jun 11, 2003 at 11:51 UTC | |
by dsm (Novice) on Jun 12, 2003 at 04:10 UTC | |
by grantm (Parson) on Jun 12, 2003 at 09:26 UTC | |
Re: Help Using XML::Parser module
by zakb (Pilgrim) on Jun 11, 2003 at 12:00 UTC | |
by bobn (Chaplain) on Jun 12, 2003 at 04:51 UTC | |
by mirod (Canon) on Jun 12, 2003 at 12:50 UTC | |
Re: Help Using XML::Parser module
by mirod (Canon) on Jun 11, 2003 at 14:30 UTC |
Back to
Seekers of Perl Wisdom