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