I have xml file for example with this content:
<?xml version="1.0" encoding="utf-8"?>
<SHOP>
<SHOPITEM>
<PRODUCT>Toy</PRODUCT>
<DESCRIPTION>Toy description.</DESCRIPTION>
<URL>http://www.hracky-matyland.cz/product/hracky-pro-nejmensi/jezek-na-baterie/4</URL>
<IMGURL>http://www.hracky-matyland.cz/product_images/temp/jezek.jpg</IMGURL>
<PRICE>74</PRICE>
<PRICE_VAT>89</PRICE_VAT>
<DUES>0</DUES>
<AVAILABILITY>0</AVAILABILITY>
</SHOPITEM>
</SHOP>
And I would like to get an image from IMGURL tag and download it. Of course I have in xml much more products. The reason why I need it is that client is moving to my web and want all products move to. The best should be if I could download each image into folder which has the name as PRODUCT tag so each product will have own folder with its images. I know that is possible with cURL but I don't know how to use it. Thanks advance.