- or download this
use XML::Smart qw( );
my $xml = XML::Smart->new();
$xml->{foo}{bar}{empty} = {};
print scalar $xml->data();
- or download this
<?xml version="1.0" encoding="iso-8859-1" ?>
<?meta name="GENERATOR" content="XML::Smart/1.6.8 Perl/5.008008 [MSWin
+32]" ?>
...
<empty/>
</bar>
</foo>
- or download this
use XML::Smart qw( );
my $xml = XML::Smart->new();
...
]>
__EOI__
print scalar $xml->data();