<?php
$xml = '<?xml version="1.0" encoding="UTF-8"?>
<store name="adamos_rihardos">
<date>2017-12-16 13:47:59</date>
<products>
<product>
<id>3</id>
<name><![CDATA[ΜΙΚΡΟΦΩΝΟ SAMSON G-TRACK]]></name>
<manufacturer><![CDATA[SAMSON]]></manufacturer>
<sku><![CDATA[550.SAM.060]]></sku>
<description_greek><![CDATA[Samson G-Track - large diaphragm USB studio
condenser microphone (USB bus-powered), built-in audio interface and mixer,
allows simultaneous input of vocals and guitar, bass, or keyboard while also
providing monitoring through an on-board headphone output. Specifications: mic
and instrument/line gain control with clip LED, stereo input jacks for (3.5mm
stereo-jack) instrument or line level signal, stereo headphone jack for zero
latency monitoring with level control, 3-position headphone switch for stereo,
mono and computer monitoring. USB bus-powered. Includes desktop microphone
stand, audio I/O cables, USB cables and Cakewalk Sonar LE software. Optional
shockmount available.]]></description_greek>
<short_description_greek><![CDATA[Samson G-Track - large diaphragm USB studio
condenser microphone (USB bus-powered)]]></short_description_greek>
<price>155.00</price>
<msrp>185.00</msrp>
<instock>no</instock>
<images total="2">
<image_1>http://test.com/media/catalog/product/5/5/550.sam.060-mi-
01.jpg</image_1>
<image_2>http://test.com/media/catalog/product/5/5/550.sam.060-mi-
02.jpg</image_2>
</images>
</product>
<product>
<id>3</id>
<name><![CDATA[ΜΙΚΡΟΦΩΝΟ SAMSON G-TRACK]]></name>
<manufacturer><![CDATA[SAMSON]]></manufacturer>
<sku><![CDATA[550.SAM.060]]></sku>
<description_greek><![CDATA[Samson G-Track - large diaphragm USB studio
condenser microphone (USB bus-powered), built-in audio interface and mixer,
allows simultaneous input of vocals and guitar, bass, or keyboard while also
providing monitoring through an on-board headphone output. Specifications: mic
and instrument/line gain control with clip LED, stereo input jacks for (3.5mm
stereo-jack) instrument or line level signal, stereo headphone jack for zero
latency monitoring with level control, 3-position headphone switch for stereo,
mono and computer monitoring. USB bus-powered. Includes desktop microphone
stand, audio I/O cables, USB cables and Cakewalk Sonar LE software. Optional
shockmount available.]]></description_greek>
<short_description_greek><![CDATA[Samson G-Track - large diaphragm USB studio
condenser microphone (USB bus-powered)]]></short_description_greek>
<price>155.00</price>
<msrp>185.00</msrp>
<instock>no</instock>
<images total="2">
<image_1>http://test.com/media/catalog/product/5/5/550.sam.060-mi-
01.jpg</image_1>
<image_2>http://test.com/media/catalog/product/5/5/550.sam.060-mi-
02.jpg</image_2>
</images>
</product>
</products>
</store>';
$products = simplexml_load_string($xml);
foreach( $products->xpath("*/product") as $p ) {
$p->addChild("newsku", "NEW".$p->sku);
}
echo $products->asXML();
<?xml version="1.0" encoding="UTF-8"?>
<store name="adamos_rihardos">
<date>2017-12-16 13:47:59</date>
<products>
<product>
<id>3</id>
<name><![CDATA[ΜΙΚΡΟΦΩΝΟ SAMSON G-TRACK]]></name>
<manufacturer><![CDATA[SAMSON]]></manufacturer>
<sku><![CDATA[550.SAM.060]]></sku>
<description_greek><![CDATA[Samson G-Track - large diaphragm USB studio
condenser microphone (USB bus-powered), built-in audio interface and mixer,
allows simultaneous input of vocals and guitar, bass, or keyboard while also
providing monitoring through an on-board headphone output. Specifications: mic
and instrument/line gain control with clip LED, stereo input jacks for (3.5mm
stereo-jack) instrument or line level signal, stereo headphone jack for zero
latency monitoring with level control, 3-position headphone switch for stereo,
mono and computer monitoring. USB bus-powered. Includes desktop microphone
stand, audio I/O cables, USB cables and Cakewalk Sonar LE software. Optional
shockmount available.]]></description_greek>
<short_description_greek><![CDATA[Samson G-Track - large diaphragm USB studio
condenser microphone (USB bus-powered)]]></short_description_greek>
<price>155.00</price>
<msrp>185.00</msrp>
<instock>no</instock>
<images total="2">
<image_1>http://test.com/media/catalog/product/5/5/550.sam.060-mi-
01.jpg</image_1>
<image_2>http://test.com/media/catalog/product/5/5/550.sam.060-mi-
02.jpg</image_2>
</images>
<newsku>NEW550.SAM.060</newsku></product>
<product>
<id>3</id>
<name><![CDATA[ΜΙΚΡΟΦΩΝΟ SAMSON G-TRACK]]></name>
<manufacturer><![CDATA[SAMSON]]></manufacturer>
<sku><![CDATA[550.SAM.060]]></sku>
<description_greek><![CDATA[Samson G-Track - large diaphragm USB studio
condenser microphone (USB bus-powered), built-in audio interface and mixer,
allows simultaneous input of vocals and guitar, bass, or keyboard while also
providing monitoring through an on-board headphone output. Specifications: mic
and instrument/line gain control with clip LED, stereo input jacks for (3.5mm
stereo-jack) instrument or line level signal, stereo headphone jack for zero
latency monitoring with level control, 3-position headphone switch for stereo,
mono and computer monitoring. USB bus-powered. Includes desktop microphone
stand, audio I/O cables, USB cables and Cakewalk Sonar LE software. Optional
shockmount available.]]></description_greek>
<short_description_greek><![CDATA[Samson G-Track - large diaphragm USB studio
condenser microphone (USB bus-powered)]]></short_description_greek>
<price>155.00</price>
<msrp>185.00</msrp>
<instock>no</instock>
<images total="2">
<image_1>http://test.com/media/catalog/product/5/5/550.sam.060-mi-
01.jpg</image_1>
<image_2>http://test.com/media/catalog/product/5/5/550.sam.060-mi-
02.jpg</image_2>
</images>
<newsku>NEW550.SAM.060</newsku></product>
</products>
</store>