I have 2 xml files as pasted below. What I need to do is insert the <interna> tag part lof the 2nd file into the first.
In both files <property_ref> will match. The second file only contains <property_ref> along with <internal>. I need to locate the same property ref in the first file and then insert the <internal> tag </internal> at the end of that record from the second file.
Could anyone help me on this one ?
File 1
<?xml version="1.0" encoding="ISO-8859-1" ?>
<properties>
<property>
<property_ref>BRANK/10009/99</property_ref>
<location>Branksome</location>
<price>£72,500</price> <main_image>c:/solex/homeview/branch1/images/1/branks.jpg</main_image>
<bullet1>Lounge /
Dining Area</bullet1>
<bullet2>Ensuite Master Bedroom</bullet2>
<bullet3>Two Further Bedrooms</bullet3>
<bullet4>Family Bathroom</bullet4>
<bullet5>Fitted Kitchen</bullet5>
<bullet6>Seperate Pantry</bullet6>
<bullet7></bullet7>
<bullet8></bullet8>
</property>
</properties>
File 2
?xml version="1.0" encoding="ISO-8859-1" ?>
<properties>
<property>
<property_ref>ASHLA/10206/99</property_ref>
<internal>\01110001.jpg</internal>
</property>
</properties>