return $data;
}
+sub _inflate_xml {
+ my ($class, $xml) = @_;
+
+ eval { require XML::Simple; XML::Simple->import };
+ confess "Could not load XML::Simple module because : $@" if $@;
+
+ my $data = eval { XMLin($xml, SuppressEmpty => 1) };
+ if ($@) {
+ confess "There was an error when attempting to peek at XML: $@";
+ }
+
+ return $data;
+}
+
1;
__END__