in reply to Re: Reading structures from XML
in thread Reading structures from XML

I'm probably missing something, but doesn't this capture that xml?

my $xml = { container => { thing => [ { foo => 'bar', '' => 'baz' }, { foo => '', quz => 'oop' }, {}, ], }, };

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^3: Reading structures from XML
by Your Mother (Archbishop) on May 07, 2009 at 15:19 UTC

    No, I think I was the one missing something. That's pretty nice. I hadn't even considered using an empty hash key to point to the content. It's a nice in to account for what I'd seen as semi-intractable.