in reply to Embedding a mini-language for XML construction into Perl

Here is our game plan. We will represent XML documents as trees of nested arrays
I know this was a gymnastics exercise, but if you want to see a CPAN implementation see new_from_lol() in HTML::Element