Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: A data structure for XML generation

by dolmen (Beadle)
on Aug 12, 2009 at 23:50 UTC ( [id://788084]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://788084]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2025-11-17 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.