Free Web Hosting Forum
(#1 (permalink))
Old
Member
willettmatter is on a distinguished road
 
Posts: 61
Join Date: Jan 2012
Location: Idaho
Default 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
Reply With Quote
Sponsored Links
Reply

Tags
php, xml-files

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com