[Zope] Change XML file with DOM API

Francois-Regis CHALAOUX fchalaou@strasbourg.synthelabo.fr
Wed, 22 Dec 1999 09:06:24 +0100


>>> Martijn Faassen <m.faassen@vet.uu.nl> wrote: >>>

Could you please attempt to describe again what you're trying to
accomplish?
==
I would like, for exemple : 

1/ Add a new tag for each entry of my xml file  => In my exemple, add the <comment> tag
2/ Assign a value for this tag :  add the value "very good" => <comment>Very good</comment>

Sorry for my poor DOM vocabulary. FR.

this is my XML file with one entry :

<?xml version="1.0">
<far title="Frquently Asked Restaurent">
<entry>
<name>La petite note</name>
<street>rue de Thann</street>
<number>4</number>
<cp>67100</cp>
<quartier>Neudorf</quartier>
<ville>Strasbourg</ville>
<tel>03 88 44 19 17</tel>
<fax>03 88 34 68 54</fax>
<email>petitenote@table.fr</email>
<hp>www.petitenote.fr</hp>
<closed>Monday</closed>
<topten>Choucroute, tete de veau</topten>
</entry>
</far>