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 committed by Benjamin Nussbaum
parent afc29e15d5
commit 9c5b5b33f5
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());