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


in reply to XML::Parser

I'm wondering about your example.
Your code snipit:
<part name="foo"> <part name="bar"/> <part name="bar2"/> </part>
is not valid xml. I know its psuedo-code, but it makes the sol'n confusing. Perhaps you meant:
<section name="foo"> <subsection name="bar"> <subsection name="baz"> </section>
Or something like that? Then you want
my $foo = new section( name => "foo" ; $foo->addSubsection( "bar" ); $foo->addSubsection( "baz" ); $foo->startSystem;
???