summaryrefslogtreecommitdiff
path: root/lib/Net/Ikano.pm
diff options
context:
space:
mode:
authorlevinse <levinse>2010-11-28 22:04:08 +0000
committerlevinse <levinse>2010-11-28 22:04:08 +0000
commit05d4021bdec9ebd786b71e839d233f2d29650702 (patch)
tree9ff6dc8420a6635ba4bf896df80df35f99593eb9 /lib/Net/Ikano.pm
parent81afca64157ecbca5ef6bee0a5310ac733200a7c (diff)
make the XML to hash stuff produce an empty string for empty elements instead of suppressing them
- much easier to test for empty values than to test for no specific keys in a hash
Diffstat (limited to 'lib/Net/Ikano.pm')
-rw-r--r--lib/Net/Ikano.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Net/Ikano.pm b/lib/Net/Ikano.pm
index de40912..c1e4b87 100644
--- a/lib/Net/Ikano.pm
+++ b/lib/Net/Ikano.pm
@@ -321,6 +321,8 @@ sub AUTOLOAD {
return "invalid HTTP response from Ikano: " . $resp->status_line
unless $resp->is_success;
my $respxml = $resp->decoded_content;
+
+ $xs = new Net::Ikano::XMLUtil(RootName => undef, SuppressEmpty => '');
my $resphash = $xs->XMLin($respxml);
warn "DEBUG RESPONSE\n\tHASH:\n ".Dumper($resphash)."\n\tXML:\n $respxml"