My xml feed looks like the following:
$html = “”;
$url = “http://www.kevro.co.za/rss/products.aspx?email=xxxxx&password=xxxxx&feed=product”;
$xml = simplexml_load_file($url);
for($i = 0; $i < 5; $i++) {
$id = $xml->product[$i]->id;
$categorygroup = $xml->product[$i]->categorygroup;
$category = $xml->product[$i]->category;
$group = $xml->product[$i]->group;
$name = $xml->product[$i]->name;
$code = $xml->product[$i]->code;
$description = $xml->product[$i]->description;
$thumb = $xml->product[$i]->thumb;
$html .= “
$categorygroup
$category
$group
$name
$code
$description
$thumb
I need to be extract values from $categorygroup = “Clothing” or “Gifting” or “Sports Brands”
I also need extract values from $group = “Active Wear” or “Tracksuit” or “T Shirt”, etc…
Please if anyone could help me with this, it would be greatly appreciated.
Kind regards
Dean Menzies
[email protected]