XML::Simple is not really a good XML parser.
That said, you want to look at the KeepRoot option:
#!perl -w use strict; use XML::Simple; my $xs = XML::Simple->new( KeepRoot => 1, ); my $ref = $xs->XMLin("<say>Hello world!</say>"); my $xml = $xs->XMLout($ref); print $xml; exit;
In reply to Re: xml help
by Corion
in thread xml help
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |