http://qs1969.pair.com?node_id=265002

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... :)