i have this .xml file..
<product>
<id>4021</id>
<product_code>1220211</product_code>
<barcode>1220211</barcode>
<title>sera Pond granulat - храна на гранули</title>
<price>71.65</price>
<meta_title>sera Pond granulat - храна на гранули</meta_title>
<meta_description>sera Pond granulat, 21 000 мл</meta_description>
</product>
With this php code i want to create meta decsription of all products.
<?php
$xml=simplexml_load_file("zoo.xml") or die("Error: Cannot create object");
foreach($xml->children() as $desc) {
echo $desc->title . " ";
echo $desc->price . " лв. ";
echo ' some text here' . "<br>";
}
?>
How to update all meta_description in the same file with created text. Thank you