http://qs321.pair.com?node_id=19081

ivey has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone have experience with XML::Parser? I have a little chunk of xml that looks like this:
<part name="foo"> <part name="bar"/> <part name="bar2"/> </part>
and what i want to do is use this to initialize some objects:
my $foo = new Part(name => "foo"); $foo->addPart("bar",new Part(name => "bar")); $foo->addPart("bar2",new Part(name => "bar2")); $foo->startSystem;
I'm having some trouble with the Handlers to make that happen...so much so that I don't even have something that sorta works. I can't seem to get my head around it. Any suggestions?