You can always transform the tree programmatically before XMLout.
for my $elem (@{ $tree->{arr}{elem} }) { $elem->{mod}{content} = delete($elem->{mod}); }
For what it's worth, keep in mind your existing code will break if a mod element acquires an attribute. (Don't you love the fragility of XML::Simple?)
In reply to Re^3: XML::Simple : element vs. attribute in XMLout
by ikegami
in thread XML::Simple : element vs. attribute in XMLout
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |