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;
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: XML::Parser
by Adam (Vicar) on Jun 20, 2000 at 23:38 UTC | |
by ivey (Beadle) on Jun 20, 2000 at 23:43 UTC | |
by btrott (Parson) on Jun 20, 2000 at 23:57 UTC | |
by Adam (Vicar) on Jun 20, 2000 at 23:53 UTC |
Back to
Seekers of Perl Wisdom