commit
b0fc046f96
1 changed files with 2 additions and 3 deletions
|
@ -64,9 +64,8 @@ class Parser {
|
|||
}
|
||||
|
||||
$items = array();
|
||||
$xmlItems = $xml->items;
|
||||
$xmlItems = $xml->items->item;
|
||||
foreach($xmlItems as $xmlItem) {
|
||||
$xmlItem = $xmlItem->item;
|
||||
$items[] = array(
|
||||
'productId' => (string)$xmlItem['id'],
|
||||
'productName' => (string)$xmlItem->name,
|
||||
|
@ -101,4 +100,4 @@ class Parser {
|
|||
'patronymic' => $patronymic
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue