my $xs = XML::Simple->new; my $xml_response_object = $xs->XMLin($response->content, forcearray => 1);