|
writing to xml -
01-27-2012, 06:55 AM
i'm trying to write to my.. well any xml.
$output=xmlwriter_open_uri("../lib/main.xml");
$blog=$sxe->continue->addChild('blog',$newin);
$blog->addAttribute('date',$date);
when I use this it puts the info in the xml. if I print it out my new stuff is right there. but when I go read from this file again, it will not load, all kinds of errors.
I'm thinking that I'm missing the command to write to and close the file. I cannot find the finishing part.
Thank you for your assistance
|