commit
b0fc046f96
@ -64,9 +64,8 @@ class Parser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$items = array();
|
$items = array();
|
||||||
$xmlItems = $xml->items;
|
$xmlItems = $xml->items->item;
|
||||||
foreach($xmlItems as $xmlItem) {
|
foreach($xmlItems as $xmlItem) {
|
||||||
$xmlItem = $xmlItem->item;
|
|
||||||
$items[] = array(
|
$items[] = array(
|
||||||
'productId' => (string)$xmlItem['id'],
|
'productId' => (string)$xmlItem['id'],
|
||||||
'productName' => (string)$xmlItem->name,
|
'productName' => (string)$xmlItem->name,
|
||||||
|
Loading…
Reference in New Issue
Block a user