make the XML to hash stuff produce an empty string for empty elements instead of...
[Net-Ikano.git] / lib / Net / Ikano.pm
index de40912..c1e4b87 100644 (file)
@@ -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"