in reply to Re: XML::Simple and Adding Nested Elements
in thread XML::Simple and Adding Nested Elements

That was it! Well, it was actually:
my $xs = XML::Simple->new( ForceArray => 1, KeepRoot => 1, NoAttr => 1 +, KeyAttr => []);
...with square brackets.
I had read this but I figured you wouldn't need to set a key attribute to empty if you set NoAttr => 1. That's what I get for making assumptions!
Thanks!

Rob

Replies are listed 'Best First'.
Re^3: XML::Simple and Adding Nested Elements
by psini (Deacon) on May 21, 2008 at 13:16 UTC

    No, KeyAttr e NoAttr refer to completely different things. It is just a bit confusing...

    Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.