in reply to Re: A data structure for XML generation
in thread A data structure for XML generation

The attribute hash ref can also be optional: if ref($tag->[1]) ne 'HASH', the tag has no attributes and $tag->[1] is the first child node. So position is only relative and undefs are not needed.
[ family => { name => 'Kawasaki' }, [father => 'Yasushisa' ], [mother => 'Chizuko' ], [children => [girl => 'Shiori' ], [boy => 'Yasuke' ], [boy => 'Kairi' ] ] ]

Replies are listed 'Best First'.
Re^3: A data structure for XML generation
by dolmen (Beadle) on Aug 13, 2009 at 00:08 UTC