Use root element name for root of array rather than "rss"

This commit is contained in:
Jamie Shiell 2026-02-08 16:47:09 +00:00
parent 463daea1c9
commit b78daed550
No known key found for this signature in database
2 changed files with 11 additions and 11 deletions

View file

@ -23,7 +23,7 @@ class XmlResponseParser implements ResponseParser
throw new Exception('Invalid XML content');
}
return ['rss' => $this->xmlToArray($xml)];
return [$xml->getName() => $this->xmlToArray($xml)];
} catch (Exception $exception) {
Log::warning('Failed to parse XML response: '.$exception->getMessage());