diff options
author | fbriere <fbriere> | 2006-02-14 01:50:23 +0000 |
---|---|---|
committer | fbriere <fbriere> | 2006-02-14 01:50:23 +0000 |
commit | 4f7f63abf30377deba653d2704df43c11061bb66 (patch) | |
tree | d764e0aba8168cb88ddd7fdf84f1cb93ad0d7aee /InternetSecure.pm | |
parent | db3d04bca56bb86414acdcc9b5663446a7d67f0a (diff) |
Let XML::Simple handle undefs itself
Diffstat (limited to 'InternetSecure.pm')
-rwxr-xr-x | InternetSecure.pm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/InternetSecure.pm b/InternetSecure.pm index b90f187..86e16e2 100755 --- a/InternetSecure.pm +++ b/InternetSecure.pm @@ -75,10 +75,6 @@ sub get_remap_fields { $self->remap_fields(reverse %map); my %data = $self->get_fields(keys %map); - foreach (values %data) { - $_ = '' unless defined; - } - return %data; } @@ -219,6 +215,7 @@ sub to_xml { xml_out(\%data, NoAttr => 1, RootName => 'TranxRequest', + SuppressEmpty => undef, XMLDecl => '<?xml version="1.0" encoding="utf-8" standalone="yes"?>', ); } |