We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c44707b commit 8d2aa2cCopy full SHA for 8d2aa2c
src/Xml.php
@@ -188,7 +188,9 @@ public static function convertSimpleXml($xml)
188
/** @var SimpleXMLElement $item */
189
foreach ($xml as $key=>$item) {
190
if($item->count()>0) {
191
- $res[$key] = self::convertSimpleXml($item);
+ foreach ($item->children() as $childItem) {
192
+ $res[$key][] = self::convertSimpleXml($childItem);
193
+ }
194
} else {
195
$res[$key] = self::convertSimpleXmlItem($item);
196
}
0 commit comments