[xml] automatic xml file update



Hi,
(sorry for my bad english)
I'm new to libxml and xml:

If I have a generic file xml, for example:

<root>
  <first>
  ...........
  ...........
  </first>
</root>

and an updated DTD file with "second" node definition, how can I do for
automatize a program to add automatically to old xml file <second> node
with eventually default values for attributes?

<root>
  <first>
  ...........
  ...........
  </first>
  <second attr="..">
  ...........
  .............
 </second>
</root>

Can you show me snippet code or link for a program that make it?

Thank you very much,
France

__________________________________________________________________
Tiscali ADSL libera la velocita'!
Attiva Senza Canone entro il 21 giugno: navighi a 1,5 euro l'ora per i primi
3 mesi,se scegli il modem e' tuo in comodato gratuito e in piu' hai gratis
SuperMail per 12 mesi. Non aspettare, attivala subito!
http://abbonati.tiscali.it/adsl/prodotti/640Kbps/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]