Skip to content

Commit

Permalink
Update Cord.php
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbj authored Mar 8, 2023
1 parent 0c2a94a commit a17da0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Cord.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ protected function fetch()
}

if ($this->asXml) {
$xmlResponse = simplexml_load_string($xmlResponse);
$xmlResponse = $xmlResponse->xpath('//Data')[0]->asXML();

return $xmlResponse;
}

Expand Down

0 comments on commit a17da0a

Please sign in to comment.