use XML::Simple; my $ref = XMLin([] [, ]); my $xml = XMLout($hashref [, ]);