Afficher un message
Vieux 19/02/2008, 08h55   #3
ofuuzo1@yahoo.no
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: appending a new xml file to another existing xml file

On 18 Feb, 17:32, ZeldorBlat <zeldorb...@gmail.com> wrote:
> On Feb 18, 9:30 am, ofuu...@yahoo.no wrote:
>
> > Hei,
> > I am having issue using DOM to appending a new xml file (new.xml) to
> > another existing xml file (old.xml) without deleting the existing
> > items in old.xml. I would like to have the new <items> append at the
> > end of existing items at the old.xml. How can I do that? I am using
> > php5

>
> > Thanks!
> >Ofuuzo

>
> Share the code you already have and describe any problems you're
> having with it. We'll be able to better you that way.


Here comes the code:

<?php
$xml_old = new DOMDocument();
$xml_old->load('http://wo.uio.no/.....x=frida&set=old');
print $xml_old->save("xmlfile.xml");


$xml_new = new DOMDocument();
$xml_new->load('http://wo.uio.no/...prefix=frida&set=new');
print $xml_new->save("xmlfile.xml");

?>

How can I append xml_new to xmlfile.xml without deleting the existing
data in xmlfile.xml?

Thanks
Ofuuzo
  Réponse avec citation
 
Page generated in 0,05921 seconds with 9 queries