diff --git a/src/HttpResponse.php b/src/HttpResponse.php
index <HASH>..<HASH> 100644
--- a/src/HttpResponse.php
+++ b/src/HttpResponse.php
@@ -85,7 +85,7 @@ class HttpResponse
     public function xml(): ?SimpleXMLElement
     {
         return simplexml_load_string(
-            utf8_encode($this->response->getBody()),
+            utf8_encode($this->response->getBody()->getContents()),
             'SimpleXMLElement', LIBXML_NOCDATA | LIBXML_NOBLANKS
         );
     }
Retrieve Contents instead of Stream for xml