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:
and what i want to do is use this to initialize some objects:<part name="foo"> <part name="bar"/> <part name="bar2"/> </part>
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?my $foo = new Part(name => "foo"); $foo->addPart("bar",new Part(name => "bar")); $foo->addPart("bar2",new Part(name => "bar2")); $foo->startSystem;
Back to
Seekers of Perl Wisdom