Ok, I have loaded my XML file with Php simpleXML but i have next situation ... My XML file looks like this:
<xml>
<status>1</status>
<market>
<shop>
<url>https://some.api.link.with.products.of.shop.com/file_with_products.xml</url>
<shopId>1</shopId>
<name>First shop</name>
</shop>
<shop>
<url>https://some.api.link.with.products.of.shop.com/file_with_products.xml</url>
<shopId>2</shopId>
<name>Second shop</name>
</shop>
</market>
</xml>
Im accessing this XML data like a objects :
foreach($xml->market->shop as $shop)
{
echo $shop->url;
echo $shop->storeId;
echo $shop->name;
}
Is there a way to access data from this url links (which is also an XML file with products list of that shop) ? So every shop have url link with XML file of his products. I have to get all data and store in MySQL databse (all data means shops data from main XML file and data from url links which are product list of that shop).