Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: A data structure for XML generation

by Jenda (Abbot)
on Aug 18, 2009 at 16:53 UTC ( [id://789526]=note: print w/replies, xml ) Need Help??


in reply to A data structure for XML generation

Mkay,

use XML::Rules; # at least 1.08 my $parser = XML::Rules->new(rules => []); print $parser->ToXML( [ family => { name => 'Kawasaki' }, [ [father => 'Yasushisa' ], [mother => 'Chizuko' ], [children => [ [girl => 'Shiori'], [boy => 'Yasuke'], [boy => 'Kairi'] ] ] ] ], 0, ' ', '');

Jenda
Enoch was right!
Enjoy the last years of Rome.

Replies are listed 'Best First'.
Re^2: A data structure for XML generation
by astroboy (Chaplain) on Aug 24, 2009 at 01:15 UTC

    This doesn't work for me. When I run it I get

    <ARRAY(0x84b3a0)>0

      What version of XML::Rules do you have? Are you sure you have 1.08?

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.

        Weird. The cpan shell installed v 1.05 yesterday, and it tells me I'm up-to-date when I try installing again

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2025-11-13 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (69 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.